Skip to content

Add some timezones (#6) #32

Add some timezones (#6)

Add some timezones (#6) #32

Workflow file for this run

on:
push:
paths: ["cmd/version.txt"]
branches: ["main"]
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # required for the changelog to work correctly.
- name: Tag
id: tag
run: |
echo "TAG=$(head -c -1 cmd/version.txt)" >> $GITHUB_ENV
- name: Create Tag
uses: actions/github-script@v7
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/v${{env.TAG}}',
sha: context.sha
})
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.3"
- name: build
run: make dist
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: v${{ env.TAG }}
name: Release ${{ env.TAG }}
artifacts: "dist/*"
prerelease: true