Skip to content

Fix auth middleware (#595) #189

Fix auth middleware (#595)

Fix auth middleware (#595) #189

Workflow file for this run

name: Release
on:
push:
branches:
- main
env:
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
jobs:
tag-release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
with:
fetch-depth: 0
- name: Get Version from file
id: get-version
uses: juliangruber/read-file-action@v1.1.6
with:
path: ./.VERSION
- name: Configure Git
run: |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
- name: Set Reftag
id: tag-version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.get-version.outputs.content }}
tag_prefix: ""
cut-release:
runs-on: ubuntu-latest
needs: tag-release
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config user.name "$GITHUB_ACTOR"
- name: GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}