Workflow file for this run
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: Create Release | |
on: | |
push: | |
tags: | |
- 'v*' # Trigger this action only when a tag starting with "v" is pushed | |
jobs: | |
release-linux: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository code | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Set up Go (since this is a Go project) | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' # Replace with your Go version if different | |
# Build the project (optional, depending on whether you want to include the binary in the release) | |
- name: Build Project | |
run: | | |
go build -o simple-file-sync-linux . | |
# Create a new GitHub release | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./simple-file-sync-linux # Path to your built binary (you can adjust this based on your build output) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release-macos: | |
runs-on: macos-latest | |
steps: | |
# Checkout the repository code | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Set up Go (since this is a Go project) | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' # Replace with your Go version if different | |
# Build the project (optional, depending on whether you want to include the binary in the release) | |
- name: Build Project | |
run: | | |
go build -o simple-file-sync-mac . | |
# Create a new GitHub release | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./simple-file-sync-mac # Path to your built binary (you can adjust this based on your build output) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |