-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from Geoportail-Luxembourg/GSLUX-635_create_r…
…elease_CI create release in workflow => attach bundle
- Loading branch information
Showing
29 changed files
with
74 additions
and
45,426 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,44 @@ | ||
name: CI_package | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
lux-package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: create release | ||
id: create_release | ||
uses: octokit/request-action@v2.x | ||
with: | ||
# secrets.GITHUB_TOKEN is a secret only valid for one CI execution | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
route: POST /repos/{owner}/{repo}/releases | ||
owner: 'Geoportail-Luxembourg' | ||
repo: 'luxembourg-geoportail' | ||
tag_name: ${{ github.ref }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
- name: Build and pack prod library | ||
shell: bash | ||
run: | | ||
npm ci | ||
npm run build:lib:prod | ||
npm pack | ||
- name: upload manually | ||
run: | | ||
project_name=$(npm run env | grep "npm_package_name" | sed s/npm_package_name=//) | ||
pkg_name=$(ls $project_name-*) | ||
lib_name=$(echo $pkg_name | sed s/luxembourg-geoportail-/luxembourg-geoportail-lib-/) | ||
curl -X POST "https://uploads.github.com/repos/$owner/$repo/releases/$id/assets?name=$lib_name" --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/octet-stream" --data-binary "@$pkg_name" | ||
env: | ||
owner: 'Geoportail-Luxembourg' | ||
repo: 'luxembourg-geoportail' | ||
id: ${{ fromJSON(steps.create_release.outputs.data).id }} |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
# build | ||
/_site/ | ||
/dist/ | ||
/bundle | ||
/out-tsc/ | ||
.parcel-cache | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.