mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
26 lines
918 B
YAML
26 lines
918 B
YAML
|
# Workflow to copy artifacts from the staging bucket to the release bucket when a new GitHub Release is published.
|
||
|
|
||
|
name: Publish Release
|
||
|
run-name: Publish ${{ github.ref_name }}
|
||
|
on:
|
||
|
release:
|
||
|
types: [published]
|
||
|
jobs:
|
||
|
publish:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Install Task
|
||
|
uses: arduino/setup-task@v2
|
||
|
with:
|
||
|
version: 3.x
|
||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
- name: Publish from staging
|
||
|
if: startsWith(github.ref, 'refs/tags/')
|
||
|
run: "task artifacts:publish:${{ github.ref_name }}"
|
||
|
env:
|
||
|
AWS_ACCESS_KEY_ID: "${{ secrets.PUBLISHER_KEY_ID }}"
|
||
|
AWS_SECRET_ACCESS_KEY: "${{ secrets.PUBLISHER_KEY_SECRET }}"
|
||
|
AWS_DEFAULT_REGION: us-west-2
|
||
|
shell: bash
|