Attempt to release
This commit is contained in:
parent
03e2f6b93e
commit
2bbcc2e6be
@ -1,13 +1,9 @@
|
|||||||
name: Test and Build
|
name: Test, Build, and Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -19,6 +15,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up cache for Cabal
|
- name: Set up cache for Cabal
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -59,17 +57,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up cache for Cabal
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
with:
|
||||||
path: |
|
fetch-depth: 0
|
||||||
~/.cache/cabal
|
|
||||||
~/.config/cabal
|
|
||||||
~/.local/state/cabal
|
|
||||||
key: cabal-${{ hashFiles('tricu.cabal') }}
|
|
||||||
restore-keys: |
|
|
||||||
cabal-
|
|
||||||
|
|
||||||
- name: Set up cache for Nix
|
- name: Set up cache for Nix
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@ -86,3 +75,12 @@ jobs:
|
|||||||
nix build
|
nix build
|
||||||
ls -alh ./result/bin/tricu
|
ls -alh ./result/bin/tricu
|
||||||
|
|
||||||
|
- name: Release binary
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
./result/bin/tricu
|
||||||
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
||||||
|
tag: $(git rev-parse --short HEAD)
|
||||||
|
title: "Release $(git rev-parse --short HEAD)"
|
||||||
|
note: "Automated release for commit $(git rev-parse --short HEAD)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user