Skip to content

Commit

Permalink
CI: Replace set-output with environment files
Browse files Browse the repository at this point in the history
The GitHub Actions set-output command is deprecated. Update the Release
workflow to use environment files.

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/.
  • Loading branch information
msmolens committed Jul 17, 2023
1 parent 8e5888e commit 5aa9477
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
uses: actions/checkout@v3
- name: Set output filename
id: set-filename
run: echo ::set-output name=filename::treetop-${GITHUB_REF#refs/*/}.zip
run: echo "FILENAME=treetop-${GITHUB_REF#refs/*/}.zip" >> $GITHUB_OUTPUT
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run build
- run: npx web-ext build --no-input=true --filename "${{ steps.set-filename.outputs.filename}}"
- run: npx web-ext build --no-input=true --filename "${{ steps.set-filename.outputs.FILENAME}}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -39,6 +39,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./web-ext-artifacts/${{ steps.set-filename.outputs.filename}}
asset_name: ${{ steps.set-filename.outputs.filename}}
asset_path: ./web-ext-artifacts/${{ steps.set-filename.outputs.FILENAME}}
asset_name: ${{ steps.set-filename.outputs.FILENAME}}
asset_content_type: application/zip

0 comments on commit 5aa9477

Please sign in to comment.