0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHub ActionsをArtifacts v4にアップデートメモ

Last updated at Posted at 2024-01-21

自分用に使ってたものを更新したメモです。

特に問題なく動作

actions/checkout@v3 -> actions/checkout@v4

      - name: Code Checkout
        uses: actions/checkout@v4

actions/setup-node@v3 -> actions/setup-node@v4

Node.js周り

      - name: Set up Node.js version
        uses: actions/setup-node@v4
        with:
          node-version: '20.x'

actions/cache@v3 -> actions/cache@v4

      - uses: actions/cache@v4
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-

actions/upload-artifact@v3 -> actions/upload-artifact@v4

      - name: Upload artifact for deployment job
        uses: actions/upload-artifact@v4
        with:
          name: node-app
          path: release.zip

actions/download-artifact@v3 -> actions/download-artifact@v4

    steps:
      - name: Download artifact from build job
        uses: actions/download-artifact@v4
        with:
          name: node-app

azure/webapps-deploy@v2 -> azure/webapps-deploy@v3

https://github.com/Azure/webapps-deploy/tree/v3 ここはv4ではなくv3が最新ぽい

      - name: 'Deploy to Azure Web App'
        id: deploy-to-webapp
        uses: azure/webapps-deploy@v3
        with:
          app-name: 'prototoout-bot'
          slot-name: 'Production'
          publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0F5266BBB77546048B43894ED5F1A357 }}
          package: release.zip

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?