-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
703dd2f
commit 2c6d318
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ jobs: | |
# - package.zip | ||
# - modules.zip | ||
# - bundle.zip | ||
build: | ||
build: # Only for tags ! | ||
if: github.event_name == 'push' && contains(github.ref, '/tags/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -52,7 +53,7 @@ jobs: | |
- name: Create Zip Package | ||
run: | | ||
zip --junk-paths ${{env.PACKAGE_NAME}} dist/${{env.PACKAGE_NAME}}/* | ||
zip --junk-paths ${{env.PACKAGE_NAME}} dist/${{env.PACKAGE_NAME}}/* -x "dist/package/*.tgz" | ||
- name: Upload JSDoc artifacts | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -87,9 +88,10 @@ jobs: | |
# - checkout gh-pages | ||
# - download des artifacts : build & jsdoc | ||
# - commit & push | ||
# info : on ne realise pas le "deploy" à ce niveau, | ||
# le commit du "changelog" sur main déclenche le deploy du build.yaml | ||
deploy: | ||
# warning: ceci risque de declencher un deploy automatique ! | ||
# > CUSTOMISER LE DEPLOY ET METTRE UNE CONDITION D'EXECUTION ! | ||
deploy: # Only for tags ! | ||
if: github.event_name == 'push' && contains(github.ref, '/tags/') | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -120,7 +122,7 @@ jobs: | |
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A | ||
git commit -m "build project gh-pages" | ||
git commit -m "[github-actions] deploy project gh-pages" | ||
git push | ||
# - checkout master or main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters