Skip to content

Commit

Permalink
Create release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
xirreal committed Oct 30, 2024
1 parent 6dda7a4 commit fe0669e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- actions-testing
tags:
- v**

jobs:
build:
Expand Down Expand Up @@ -53,3 +55,29 @@ jobs:
with:
name: dist
path: dist

release:
name: Release Package
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: dist

- name: "Upload to R2"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: auto
AWS_ENDPOINT_URL: ${{ secrets.S3_ENDPOINT_URL }}
run: |
aws s3 sync ./ s3://tsc/
- name: Create a new release
uses: softprops/action-gh-release@v2
with:
files: TailscaleClient*

0 comments on commit fe0669e

Please sign in to comment.