-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
7 changed files
with
130 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SDK Geoportail 2D/3D, version __VERSION__ | ||
|
||
**__DATE__ : version __VERSION__** | ||
|
||
> Release SDK Geoportail 2D/3D | ||
## Summary | ||
|
||
## Changelog | ||
|
||
* [Added] | ||
|
||
* [Changed] | ||
|
||
* [Removed] | ||
|
||
* [Fixed] | ||
|
||
* [Deprecated] | ||
|
||
* [Security] |
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 |
---|---|---|
|
@@ -179,6 +179,24 @@ jobs: | |
id: get_version | ||
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF##*/}) | ||
|
||
- name: Get Package.json value | ||
id: get_package_value | ||
run: | | ||
echo ::set-output name=DATE::$(cat package.json | perl -MJSON -0ne 'my $DS = decode_json $_; my $field = 'date'; print $DS->{$field};' | sed -e 's/\//\\\//g') | ||
echo ::set-output name=VERSION::$(cat package.json | perl -MJSON -0ne 'my $DS = decode_json $_; my $field = 'version'; print $DS->{$field};') | ||
- name: Create ChangeLog | ||
run: | # cf. http://fahdshariff.blogspot.com/2012/12/sed-mutli-line-replacement-between-two.html | ||
sed -i 's/__VERSION__/${{ steps.get_package_value.outputs.VERSION }}/g' DRAFT_CHANGELOG.md | ||
sed -i 's/__DATE__/${{ steps.get_package_value.outputs.DATE }}/g' DRAFT_CHANGELOG.md | ||
- name: Upload ChangeLog artifacts | ||
if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: changelog | ||
path: DRAFT_CHANGELOG.md | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
|
@@ -270,3 +288,33 @@ jobs: | |
npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_GEOPORTAL_TOKEN }} | ||
|
||
changelog: | ||
if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! | ||
needs: [create_release, publish_package] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: IGNF/geoportal-sdk | ||
ref: develop | ||
token: ${{ secrets.ADMIN_GEOPORTAL_TOKEN }} | ||
|
||
- name: Download ChangeLog artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: changelog | ||
|
||
- name: Reset draft changelog | ||
run: | | ||
rm DRAFT_CHANGELOG.md | ||
cp .github/CHANGELOG_TEMPLATE.md DRAFT_CHANGELOG.md | ||
- name: Clean and publish | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A | ||
git commit -m "reset DRAFT_CHANGELOG" | ||
git push --force |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# DEPENDENCIES (17/01/2022) | ||
# DEPENDENCIES (31/03/2022) | ||
|
||
* [email protected].8 | ||
└── geoportal-access-lib@3.0.5 | ||
* [email protected].11 | ||
└── geoportal-access-lib@3.1.0 | ||
|
||
* [email protected].5 | ||
└── geoportal-access-lib@3.0.5 | ||
* [email protected].6 | ||
└── geoportal-access-lib@3.1.0 | ||
|
||
* "itowns" | ||
└── "itowns@2.33.0" | ||
└── "itowns@2.37.0" | ||
|
||
* "openlayers" | ||
└── "[email protected] |
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
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
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
{ | ||
"license" : "CECILL-B", | ||
"directories" : {}, | ||
"scripts" : {}, | ||
"module" : "src/SDK2D.js", | ||
"bugs" : { | ||
"url" : "https://github.com/IGNF/geoportal-sdk/issues" | ||
}, | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/IGNF/geoportal-sdk.git" | ||
}, | ||
"bugs" : { | ||
"url" : "https://github.com/IGNF/geoportal-sdk/issues" | ||
"main" : "dist/GpSDK2D-src.js", | ||
"description" : "French Geoportal SDK based on OpenLayers (2D)", | ||
"version" : "3.3.12", | ||
"date" : "31/03/2022", | ||
"keywords" : [ | ||
"openlayers", | ||
"geoportail", | ||
"webservice", | ||
"javascript" | ||
], | ||
"dependencies" : { | ||
"node-fetch" : "^2.6.1", | ||
"geoportal-extensions-openlayers" : "3.2.11", | ||
"ol" : "6.9.0", | ||
"xmldom" : "^0.1.27" | ||
}, | ||
"author" : "IGNF", | ||
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/sdk.html", | ||
"name" : "@ignf-geoportal/sdk-2d", | ||
"date" : "11/02/2022", | ||
"version" : "3.3.8", | ||
"scripts" : {}, | ||
"files" : [ | ||
"dist/", | ||
"src/", | ||
"LICENCE.md", | ||
"README.md", | ||
"package.json" | ||
], | ||
"author" : "IGNF", | ||
"dependencies" : { | ||
"xmldom" : "^0.1.27", | ||
"node-fetch" : "^2.6.1", | ||
"ol" : "6.9.0", | ||
"geoportal-extensions-openlayers" : "3.2.8" | ||
}, | ||
"directories" : {}, | ||
"keywords" : [ | ||
"openlayers", | ||
"geoportail", | ||
"webservice", | ||
"javascript" | ||
], | ||
"description" : "French Geoportal SDK based on OpenLayers (2D)", | ||
"module" : "src/SDK2D.js", | ||
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/sdk.html", | ||
"main" : "dist/GpSDK2D-src.js", | ||
"license" : "CECILL-B" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
{ | ||
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/sdk.html", | ||
"bugs" : { | ||
"url" : "https://github.com/IGNF/geoportal-sdk/issues" | ||
}, | ||
"license" : "CECILL-B", | ||
"name" : "@ignf-geoportal/sdk-3d", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/IGNF/geoportal-sdk.git" | ||
}, | ||
"scripts" : {}, | ||
"module" : "src/SDK3D.js", | ||
"dependencies" : { | ||
"itowns" : "2.33.0", | ||
"geoportal-extensions-openlayers" : "3.2.8", | ||
"geoportal-extensions-itowns" : "2.3.5", | ||
"geoportal-extensions-itowns" : "2.3.6", | ||
"ol" : "6.9.0", | ||
"itowns" : "2.37.0", | ||
"xmldom" : "^0.1.27", | ||
"node-fetch" : "^2.6.1", | ||
"ol" : "6.9.0" | ||
"geoportal-extensions-openlayers" : "3.2.11" | ||
}, | ||
"author" : "IGNF", | ||
"main" : "dist/GpSDK3D-src.js", | ||
"date" : "31/03/2022", | ||
"directories" : {}, | ||
"version" : "3.3.12", | ||
"keywords" : [ | ||
"openlayers", | ||
"itowns", | ||
"geoportail", | ||
"webservice", | ||
"javascript" | ||
], | ||
"version" : "3.3.8", | ||
"files" : [ | ||
"dist/", | ||
"src/", | ||
"LICENCE.md", | ||
"README.md", | ||
"package.json" | ||
], | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/IGNF/geoportal-sdk.git" | ||
}, | ||
"main" : "dist/GpSDK3D-src.js", | ||
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/sdk.html", | ||
"scripts" : {}, | ||
"description" : "French Geoportal SDK based on OpenLayers (2D) and iTowns (3D) libraries", | ||
"bugs" : { | ||
"url" : "https://github.com/IGNF/geoportal-sdk/issues" | ||
}, | ||
"module" : "src/SDK3D.js", | ||
"author" : "IGNF", | ||
"directories" : {}, | ||
"license" : "CECILL-B", | ||
"date" : "11/02/2022", | ||
"name" : "@ignf-geoportal/sdk-3d" | ||
"description" : "French Geoportal SDK based on OpenLayers (2D) and iTowns (3D) libraries" | ||
} |