Fix workflow to publish latest release (#364)

## Changes

Fix the publish workflow introduced in #363.

## Tests

Manual triggers.
This commit is contained in:
Pieter Noordhuis 2023-04-26 16:54:52 +02:00 committed by GitHub
parent 9e16140b6e
commit e4b23dcd80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
@ -20,15 +20,10 @@ jobs:
sudo apt-get update
sudo apt-get install s3cmd
- name: Merge release branch
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git merge origin/release-s3
- name: Publish to S3
working-directory: ./scripts
run: ./publish_to_s3.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -46,3 +46,8 @@ jobs:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
uses: ./.github/workflows/publish-latest.yml
needs: goreleaser
secrets: inherit