-
Notifications
You must be signed in to change notification settings - Fork 30
36 lines (35 loc) · 934 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
# Events that trigger workflow
on:
push:
branches:
- "*"
pull_request:
jobs:
test:
name: Test/Nix
runs-on: ubuntu-24.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build
push_to_pypi:
name: Build
needs: [test]
runs-on: ubuntu-24.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set default for env.NEW_TAG
run: echo "NEW_TAG=NO_NEW_TAG" >> $GITHUB_ENV
- name: Check for new version
if: ${{ env.BRANCH_NAME == 'main' }}
run: |
python3 .github/scripts/generate_tag.py
- name: Tag Commit
if: ${{ env.NEW_TAG != 'NO_NEW_TAG' }}
uses: tvdias/[email protected]
with:
tag: "${{ env.NEW_TAG }}"
repo-token: "${{ secrets.MY_TOKEN }}"