-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppre fichier LICENSE redondant, ajout ZIP sur GH Action commit
- Loading branch information
Showing
2 changed files
with
48 additions
and
351 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 |
---|---|---|
|
@@ -4,22 +4,67 @@ on: | |
push: | ||
tags: | ||
- '*' | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'cadastre/**' | ||
|
||
jobs: | ||
zipping: | ||
package-commit: | ||
name: Package commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
# To fetch tags | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: "pip" | ||
cache-dependency-path: "requirements/packaging.txt" | ||
|
||
- name: Install Python requirements | ||
run: pip install -r requirements/packaging.txt | ||
|
||
- name: Set env | ||
run: | | ||
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
echo "VERSION=$(echo ${TAG} | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')-alpha" >> $GITHUB_ENV | ||
- name: Package | ||
run: >- | ||
qgis-plugin-ci | ||
package ${{ env.VERSION }} | ||
- name: Unzip | ||
run: unzip dynamic_layers.${{ env.VERSION }}.zip -d tmp | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dynamic_layers.${{ env.VERSION }} | ||
path: tmp | ||
|
||
package-release: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == '3liz' && contains(github.ref, 'refs/tags/') | ||
steps: | ||
|
||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -49,15 +94,6 @@ jobs: | |
--osgeo-password ${{ secrets.OSGEO_PASSWORD }} | ||
--create-plugin-repo | ||
- name: Tweet | ||
uses: mugi111/[email protected] | ||
with: | ||
consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }} | ||
consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} | ||
access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }} | ||
access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | ||
tweet_body: "Nouvelle version de l'extension Cadastre ${{ env.RELEASE_VERSION }} 🇫🇷 pour #QGIS https://github.com/3liz/QgisCadastrePlugin/releases" | ||
|
||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
|
Oops, something went wrong.