Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Merge pull request #396 from findy-network/dependabot/go_modules/dev/… #166

Merge pull request #396 from findy-network/dependabot/go_modules/dev/…

Merge pull request #396 from findy-network/dependabot/go_modules/dev/… #166

Workflow file for this run

name: release
on:
push:
tags:
- "*"
jobs:
goreleaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-release:
needs: goreleaser
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./install.sh ${{ github.ref_name }}
- run: ./bin/findy-agent-cli version
merge:
needs: test-release
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.AGENCY_RELEASER_ID }}
private-key: ${{ secrets.AGENCY_RELEASER_KEY }}
- name: checkout
uses: actions/checkout@v4
with:
ref: master
token: ${{ steps.generate_token.outputs.token }}
- name: merge
run: |
git fetch --tags origin
git merge $GITHUB_REF
git push origin master