actions: don't use cut to create the REF value

This commit is contained in:
Dag Heyman 2019-09-24 13:31:55 +02:00
parent e27ca452db
commit 640efe3b9c
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ jobs:
- name: Build docker image that produces the AppImage
run: |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
export REF=${GITHUB_REF#refs/*/}
docker build -t xenial-appimage -f docker/xenial-appimage/Dockerfile .
id=$(docker create --privileged xenial-appimage)
docker start --attach $id
@ -23,5 +23,5 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
export REF=${GITHUB_REF#refs/*/}
aws s3 mv yubioath-desktop-${REF}.AppImage s3://yubico-builds/yubioath-desktop/yubioath-desktop-${REF}.AppImage --acl public-read

View File

@ -82,7 +82,7 @@ jobs:
- name: Rename and archive app bundle
run: |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
export REF=${GITHUB_REF#refs/*/}
mv yubioath-desktop.app Yubico\ Authenticator.app
tar -czf yubioath-desktop-${REF}.app.tar.gz Yubico\ Authenticator.app
@ -91,5 +91,5 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
export REF=${GITHUB_REF#refs/*/}
aws s3 mv yubioath-desktop-${REF}.app.tar.gz s3://yubico-builds/yubioath-desktop/yubioath-desktop-${REF}.app.tar.gz --acl public-read