Skip to content

Commit

Permalink
Merge pull request #17 from Zalk0/main
Browse files Browse the repository at this point in the history
Déploiement
  • Loading branch information
n3rada committed Jun 23, 2024
2 parents 59abdd1 + 39f428b commit 7edc632
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Upload zip
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: deploy
Expand All @@ -21,3 +21,23 @@ jobs:
Makefile
rapportUTT.tex
rUTT.cls
- name: Create draft release
env:
GH_TOKEN: ${{ github.token }}
run: |
zip -qr deploy.zip \
assets/ \
latex-files/ \
packages/ \
ressources-graphiques/ \
.latexmkrc \
Makefile \
rapportUTT.tex \
rUTT.cls && \
for DRAFT_TAG in $(gh release list --limit 100 --json tagName,isDraft --jq '.[] | select(.isDraft) | .tagName'); do \
gh release delete "$DRAFT_TAG" -y; \
done; YEAR_MONTH=$(date "+%Y.%-m"); COUNT=0; \
for TAG in $(gh release list --exclude-drafts --limit 100 | awk '{print $1}'); do \
case "$TAG" in v"$YEAR_MONTH".*) COUNT=$((COUNT + 1));; esac; \
done; RELEASE_NUMBER=$((COUNT + 1)); \
gh release create --draft --generate-notes "v$YEAR_MONTH.$RELEASE_NUMBER" deploy.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Voici la couverture que vous obtiendrez en utilisant ce projet :
## Utilisation

**Pour une utilisation simple, ne téléchargez pas directement tout le repository !**
Téléchargez [l'archive prête à être utilisée](https://nightly.link/n3rada/ScribUTT/workflows/deploy.yaml/main/deploy.zip).
Téléchargez [l'archive prête à être utilisée](https://github.com/n3rada/ScribUTT/releases/latest/download/deploy.zip).

## Bivalence

Expand Down

0 comments on commit 7edc632

Please sign in to comment.