Skip to content

Commit

Permalink
ci: release current version every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 21, 2024
1 parent 4c2b7b2 commit 894af4d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,32 @@ jobs:
with:
branch: gh-pages
folder: html

########################################################################
## FULL SOURCE CODE RELEASE GENERATION
########################################################################

- name: Generate full source archive
if: |
github.event_name == 'push' && github.ref_name == 'master' &&
matrix.agda-tag == 'nightly'
run: |
make gen-everythings \
AGDA_EXEC='~/.cabal/bin/agda' \
FIX_WHITESPACE='~/.cabal/bin/fix-whitespace' \
EVERYTHINGS='cabal run Everythings'
tar czf cm-full-source.tar.gz *.md LICENSE fix-whitespace.yaml cubical-mini.agda-lib src/
- name: Update Nightly Release
if: |
github.event_name == 'push' && github.ref_name == 'master' &&
matrix.agda-tag == 'nightly'
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'nightly-$$'
prerelease: true
files: |
./cm-full-source.tar.gz
7 changes: 2 additions & 5 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build :
$(MAKE) AGDA_EXEC=$(AGDA_BIN) gen-everythings check

.PHONY : test
test : check-whitespace gen-instances gen-and-check-everythings check-README check
test : check-whitespace gen-and-check-everythings check-README check

# checking and fixing whitespace

Expand All @@ -33,14 +33,11 @@ check-whitespace:
check-everythings:
$(EVERYTHINGS) check-except System

.PHONY : gen-instances
gen-instances:
$(EVERYTHINGS) gen-public $(DATA_INSTANCE_DIRS)

.PHONY : gen-everythings
gen-everythings:
$(EVERYTHINGS) gen-except System
$(EVERYTHINGS) gen-unsafe System
$(EVERYTHINGS) gen-public $(DATA_INSTANCE_DIRS)

.PHONY : gen-and-check-everythings
gen-and-check-everythings: gen-everythings check-everythings
Expand Down

0 comments on commit 894af4d

Please sign in to comment.