Merge pull request #650 from tursodatabase/athos/seed-refactor #123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
goreleaser: | |
permissions: | |
id-token: write | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.21" | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_TAP }} | |
- name: Run GoReleaser to legacy tap | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --rm-dist --config .goreleaser-legacy-tap.yaml | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_LEGACY_TAP }} | |
- name: Get version | |
id: get_version | |
run: echo ::set-output name=VERSION::$(echo "{ \"Version\":\"$GITHUB_REF_NAME\"}") | |
shell: bash | |
- name: Echo | |
run: echo ${{ steps.get_version.outputs.VERSION }} | |
- name: Update Turso backoffice | |
uses: fjogeleit/http-request-action@v1 | |
with: | |
url: 'https://api.chiseledge.com/releases' | |
method: 'POST' | |
data: ${{ steps.get_version.outputs.VERSION }} | |
bearerToken: ${{ secrets.TURSOSTAFF_TOKEN }} |