added nix pipeline to github
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 1m46s
Details
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 1m46s
Details
This commit is contained in:
parent
255cdfeae1
commit
572d505701
|
@ -5,16 +5,16 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
run-ci-linux:
|
run-ci-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
TYPST_INSTALL: $HOME/.typst
|
|
||||||
TYPST_VERSION: 0.11.1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Typst CLI
|
- name: Install dependencies for Nix setup action
|
||||||
run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION"
|
run: |
|
||||||
- uses: actions/setup-python@v5
|
apt update -y
|
||||||
|
apt install sudo -y
|
||||||
|
- name: Setup Nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Run CI
|
- name: Run CI
|
||||||
run: export PATH="$TYPST_INSTALL/bin:$PATH" && bash -c ./run-ci.sh
|
run: nix-shell --run ./run-ci.sh
|
||||||
|
|
|
@ -1,32 +1,34 @@
|
||||||
|
name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Sequence of patterns matched against refs/tags
|
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
- 'v*.*.*'
|
||||||
|
|
||||||
name: Create Release
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
release:
|
||||||
name: Create Release
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Typst CLI
|
- name: Install dependencies for Nix setup action
|
||||||
run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION"
|
run: |
|
||||||
- uses: actions/setup-python@v5
|
apt update -y
|
||||||
|
apt install sudo -y
|
||||||
|
- name: Setup Nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Run CI
|
- name: Run CI
|
||||||
run: export PATH="$TYPST_INSTALL/bin:$PATH" && bash -c ./run-ci.sh
|
run: nix-shell --run ./run-ci.sh
|
||||||
- name: Create Release
|
- name: Setup go
|
||||||
id: create_release
|
uses: https://github.com/actions/setup-go@v4
|
||||||
uses: actions/create-release@latest
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
go-version: '>=1.20.1'
|
||||||
release_name: Release ${{ github.ref }}
|
- name: Create release
|
||||||
draft: false
|
id: create-release
|
||||||
prerelease: false
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
example.pdf
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
|
Loading…
Reference in New Issue