π Release #8
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: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
services: | |
bun: | |
image: oven/bun:alpine | |
options: > | |
--volume /home/runner/work/${{ github.repository }}:/workspace | |
--workdir /workspace | |
steps: | |
- name: π» Checkout current pull-request revision code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.DEVOPS_USER_TOKEN }} | |
- name: π’ Configure Bun on runner | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
# - name: π΅ Install Task | |
# uses: arduino/setup-task@v2 | |
- name: πΌ Configure Git user | |
run: | | |
git config user.name "gbh-devops-bot" | |
git config user.email "[email protected]" | |
- name: π¦ Install package dependencies using lockfile | |
run: bun install --frozen-lockfile | |
- name: π¦ Install package dependencies using lockfile | |
run: docker ps | |
- name: π¦ Install package dependencies using lockfile | |
run: docker exec | |
-t bun | |
bun install -g @go-task/cli | |
bun install --frozen-lockfile | |
- name: π¨ Run build | |
run: docker exec | |
-t bun | |
bun run build | |
- name: π¨ Compile binary for supported platforms | |
run: docker exec | |
-t bun | |
task compile | |
task compress | |
- name: π¨ Compile binary for supported platforms | |
run: docker exec | |
-t bun | |
cp -r | |
/workspace/dist | |
./dist | |
- name: π Release a new version | |
run: bun release-it --ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.DEVOPS_USER_TOKEN }} |