Skip to content

Support Package Refresh 2024-11 (#17) #1

Support Package Refresh 2024-11 (#17)

Support Package Refresh 2024-11 (#17) #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*' # Triggers the workflow on new tags that start with 'v'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
- name: Compile binaries
run: |
sed -i "s/__APP_VERSION__/$TAG_NAME/g" main.js
deno task compile
env:
TAG_NAME: ${{ github.ref_name }}
- name: Package binaries
run: |
zip ./bin/cf-support_windows_x86_64.zip ./bin/cf-support_windows_x86_64.exe
tar -czvf ./bin/cf-support_darwin_x86_64.tar.gz ./bin/cf-support_darwin_x86_64
tar -czvf ./bin/cf-support_darwin_arm64.tar.gz ./bin/cf-support_darwin_arm64
tar -czvf ./bin/cf-support_linux_x86_64.tar.gz ./bin/cf-support_linux_x86_64
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: |
./bin/cf-support_windows_x86_64.zip
./bin/cf-support_darwin_x86_64.tar.gz
./bin/cf-support_darwin_arm64.tar.gz
./bin/cf-support_linux_x86_64.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: false