Update GitHub Actions workflow to use env files

set-env has been deprecated
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
Robbert van der Helm
2020-10-09 12:52:12 +02:00
parent 6ff61b1904
commit 5a64769699
+3 -6
View File
@@ -38,8 +38,7 @@ jobs:
run: git fetch --force --prune --tags --unshallow run: git fetch --force --prune --tags --unshallow
- name: Determine build archive name - name: Determine build archive name
run: | run: |
export ARCHIVE_NAME=yabridge-$(git describe --always)-ubuntu-18.04.tar.gz echo "ARCHIVE_NAME=yabridge-$(git describe --always)-ubuntu-18.04.tar.gz" >> "$GITHUB_ENV"
echo ::set-env "name=ARCHIVE_NAME::$ARCHIVE_NAME"
- name: Build the binaries - name: Build the binaries
run: | run: |
# Wine won't create a Wine prefix in ~/.wine because /github/home is # Wine won't create a Wine prefix in ~/.wine because /github/home is
@@ -80,8 +79,7 @@ jobs:
run: git fetch --force --prune --tags --unshallow run: git fetch --force --prune --tags --unshallow
- name: Determine build archive name - name: Determine build archive name
run: | run: |
export ARCHIVE_NAME=yabridge-$(git describe --always).tar.gz echo "ARCHIVE_NAME=yabridge-$(git describe --always).tar.gz" >> "$GITHUB_ENV"
echo ::set-env "name=ARCHIVE_NAME::$ARCHIVE_NAME"
- name: Build the binaries - name: Build the binaries
run: | run: |
# Wine won't create a Wine prefix in ~/.wine because /github/home is # Wine won't create a Wine prefix in ~/.wine because /github/home is
@@ -119,8 +117,7 @@ jobs:
run: git fetch --force --prune --tags --unshallow run: git fetch --force --prune --tags --unshallow
- name: Determine build archive name - name: Determine build archive name
run: | run: |
export ARCHIVE_NAME=yabridgectl-$(git describe --always).tar.gz echo "ARCHIVE_NAME=yabridgectl-$(git describe --always).tar.gz" >> "$GITHUB_ENV"
echo ::set-env "name=ARCHIVE_NAME::$ARCHIVE_NAME"
- name: Set up Rust toolchain - name: Set up Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with: