Skip to content

docs: update readme #22

docs: update readme

docs: update readme #22

Workflow file for this run

name: Release
on:
push:
branches: master
pull_request:
branches: master
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
permissions:
contents: write
packages: write
steps:
- name: GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- name: Build
run: go build ./...
- name: Run Semantic Release
uses: go-semantic-release/action@v1
id: semrel
with:
github-token: ${{ steps.app-token.outputs.token }}
changelog-file: CHANGELOG.md
update-file: go.mod
changelog-generator-opt: "emojis=true"
- name: Publish to GitHub
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
VERSION=$(git describe --tags --abbrev=0)
echo "module github.com/Nicconike/goautomate" > go.mod
GOPROXY=proxy.golang.org go list -m github.com/Nicconike/goautomate@$VERSION