@@ -0,0 +1,29 @@
|
||||
name: Build Artifacts
|
||||
on: push
|
||||
|
||||
premissions:
|
||||
code: read
|
||||
releases: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v6
|
||||
- name: Install Haskell
|
||||
uses: haskell-actions/setup
|
||||
with:
|
||||
enable-stacke: true
|
||||
stack-no-global: true
|
||||
stack-setup-ghc: true
|
||||
- name: Build with Stack
|
||||
run: env STACK_YAML="${{ gitea.workspace }}/stack.yaml" stack build
|
||||
- name: Create Tarball
|
||||
run: |
|
||||
export STACK_YAML="${{ gitea.workspace }}/stack.yaml"
|
||||
mkdir usr/
|
||||
stack --local-bin-path usr/bin/ build --copy-bins
|
||||
install -m 0644 -D "${{ gitea.workspace }}/completions/license-tool.zsh" usr/share/zsh/site-functions/_license-tool
|
||||
cp -r "${{ gitea.workspace }}" usr/share/license-tool
|
||||
tar -caf license-tool-hs.tar.gz usr/
|
||||
Reference in New Issue
Block a user