Release process #2
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: Lucky CLI Release | |
#permissions: | |
#contents: write | |
on: | |
#push: | |
#tags: | |
#- "v*.*.*" | |
#workflow_dispatch: | |
#inputs: | |
#branch: | |
#description: Branch | |
pull_request: # TODO: only for testing | |
branches: "*" | |
jobs: | |
#build-linux-static: | |
#if: false | |
#uses: ./.github/workflows/reusable-earthly.yml | |
#with: | |
#earthly-cmd: +release-static | |
#build-linux-dynamic: | |
#uses: ./.github/workflows/reusable-earthly.yml | |
#with: | |
#earthly-cmd: +release | |
build-mac-dynamic: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: crystal-lang/install-crystal@v1 | |
- name: Build executable | |
run: | | |
shards build lucky --without-development --no-debug --release | |
- name: Package executable | |
run: | | |
tar -czvf lucky-darwin.tar.gz -C bin . | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: lucky-darwin | |
path: lucky-darwin.tar.gz | |
if-no-files-found: error | |
#build-windows-static: | |
#runs-on: windows-latest | |
#steps: | |
#- uses: actions/checkout@v3 | |
#- uses: crystal-lang/install-crystal@v1 | |
#- uses: ilammy/msvc-dev-cmd@v1 | |
#- name: Build binary | |
#run: shards build lucky --production --no-debug --release | |
#- uses: actions/upload-artifact@v4 | |
#with: | |
#name: lucky-windows-static | |
#path: bin/lucky.exe | |
#if-no-files-found: error | |
#retention-days: 7 | |
#build-windows-dynamic: | |
#if: false | |
#runs-on: windows-latest | |
#steps: | |
#- uses: actions/checkout@v3 | |
#- uses: crystal-lang/install-crystal@v1 | |
#- uses: ilammy/msvc-dev-cmd@v1 | |
#- name: Build binary | |
#run: shards build lucky --production --no-debug --release | |
#- uses: actions/upload-artifact@v4 | |
#with: | |
#name: lucky-windows-dynamic | |
#path: bin | |
#if-no-files-found: error | |
#retention-days: 7 |