-
Notifications
You must be signed in to change notification settings - Fork 3
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 #556 from Artsdatabanken/upgrade/deps
Upgrade/deps
- Loading branch information
Showing
21 changed files
with
18,358 additions
and
73 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,20 @@ | ||
name: build and test PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
- run: npm install | ||
- run: npm run build | ||
- run: cd wms-assistent | ||
- run: npm install | ||
- run: npm run build | ||
- run: cd .. |
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,3 @@ | ||
mkdir build/static | ||
cp -R wms-assitent/build/ build/static/ | ||
tar czf $(basename $GITHUB_REPOSITORY).tar.gz -C build . |
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,38 @@ | ||
name: build and publish | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
- run: npm install | ||
- run: npm run build | ||
- run: cd wms-assistent | ||
- run: npm install | ||
- run: npm run build | ||
- run: cd .. | ||
- name: Check downloaded files | ||
run: ./.github/workflows/filecheck.sh | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "./destinationRepo" | ||
token: ${{secrets.PUSH_TOKEN}} | ||
- name: Run deployment script | ||
run: ./.github/workflows/deploy.sh | ||
shell: bash | ||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: ${{ github.event.repository.name }}.tar.gz | ||
tag: v_${{ github.run_number }} | ||
- name: post to slack | ||
run: ./.github/workflows/slack.sh ${{ secrets.POST_SLACK }} | ||
shell: bash |
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,2 @@ | ||
ls -l temp | ||
ls -l build |
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 @@ | ||
curl -X POST -H 'Content-type: application/json' --data '{"text":"deploy forvaltningsportal"}' $1 |
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
Oops, something went wrong.