actions: better names for artifacts

This commit is contained in:
Dag Heyman 2019-09-24 12:10:05 +02:00
parent 3a195086b3
commit e27ca452db
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} | tr / -)
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
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} | tr / -)
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
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} | tr / -)
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
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} | tr / -)
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
aws s3 mv yubioath-desktop-${REF}.app.tar.gz s3://yubico-builds/yubioath-desktop/yubioath-desktop-${REF}.app.tar.gz --acl public-read