password-hash-self-service/.forgejo/workflows/build.yaml

23 lines
673 B
YAML
Raw Normal View History

2024-06-02 17:39:47 +02:00
on: [push]
jobs:
build:
runs-on: docker
steps:
- name: Set up dependencies
run: |
apt-get update
apt-get -y install sudo
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v27
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: nix build -L
- name: Archive
2024-06-02 17:42:08 +02:00
run: tar --transform 's/^result/password-hash-self-service/' -cvzf password-hash-self-service.tar.gz result/*
2024-06-02 17:39:47 +02:00
- name: Upload
uses: actions/upload-artifact@v3
with:
2024-06-02 17:42:08 +02:00
name: password-hash-self-service.tar.gz
path: password-hash-self-service.tar.gz