Release #10
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: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
required: true | |
description: 'The version to publish with' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
iconifyApi: | |
image: iconify/api | |
ports: | |
- 3000:3000 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: | | |
go mod download | |
go install github.com/a-h/templ/cmd/templ@latest | |
- name: Generate icons | |
run: go run cmd/generator/generator.go | |
- name: Compile templates | |
run: templ generate | |
- name: Set up Git | |
run: | | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
- name: Create Tag | |
id: tag | |
run: | | |
git add . | |
git commit -m "Automated commit message" | |
# Create the tag | |
git tag ${{ github.event.inputs.tag }} | |
# Push the tag to the repository | |
git push origin ${{ github.event.inputs.tag }} |