Compare commits
No commits in common. "1aad5516403baf411b07efa493d353f68b8ae4cf" and "bcc5d6ba222c68f8c05bf02025ce1c1a6c39176e" have entirely different histories.
1aad551640
...
bcc5d6ba22
|
@ -1,16 +1,10 @@
|
||||||
name: Build'n check
|
name: Gitea Action for checking typst compilation
|
||||||
run-name: Performing Typst compilation
|
run-name: Performing Typst compilation
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
jobs:
|
jobs:
|
||||||
run-ci-linux:
|
run-ci-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >
|
|
||||||
contains(github.event.head_commit.message, 'Run-Check') ||
|
|
||||||
github.event_name == 'pull_request'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -22,9 +16,5 @@ jobs:
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v27
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Stylecheck
|
- name: Run CI
|
||||||
run: nix-shell --run "./run-fmt.sh --check src/lib.typ"
|
run: nix-shell --run ./run-ci.sh
|
||||||
- id: build
|
|
||||||
name: Build
|
|
||||||
run: |
|
|
||||||
nix-shell --run ./run-ci.sh
|
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*.*.*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Install dependencies for Nix setup action
|
||||||
|
run: |
|
||||||
|
apt update -y
|
||||||
|
apt install sudo -y
|
||||||
|
- name: Setup Nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- name: Run CI
|
||||||
|
run: nix-shell --run ./run-ci.sh
|
||||||
|
- name: Setup go
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: Create release
|
||||||
|
id: create-release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
example.pdf
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
Loading…
Reference in New Issue