Skip to content

chore(ci): update release workflow #3

chore(ci): update release workflow

chore(ci): update release workflow #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write # Required for creating releases and uploading assets
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.37.0" # Specify a compatible version
- name: Build Executables
run: |
deno cache main.ts # Cache dependencies first
deno task build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release ${{ github.ref }}
## Downloads
- [macOS ARM64 (M1/M2)](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/auto-commit-darwin-arm64)
- [macOS Intel](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/auto-commit-darwin-x64)
- [Windows](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/auto-commit-windows-x64.exe)
- [Linux](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/auto-commit-linux-x64)
draft: false
prerelease: false
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
dist/auto-commit-darwin-arm64
dist/auto-commit-darwin-x64
dist/auto-commit-windows-x64.exe
dist/auto-commit-linux-x64