Skip to content

Commit

Permalink
Merge pull request #577 from Artsdatabanken/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
Myrdrahl committed Apr 4, 2023
2 parents 804a0e0 + ccf1801 commit c1c4752
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cp scripts/extract-meta.js build/
tar cf artifacts.tar build
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: nin-data-lastejobb

on:
push:
branches: [ master ]
branches: [ master, updates ]

jobs:
build:
Expand All @@ -18,8 +18,14 @@ jobs:
- run: npm update
- run: npm run download
- run: npm run transform
- name: Run deployment script
run: ./.github/workflows/deploy.sh
shell: bash
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "build/*"
tag: v_${{ github.run_number }}
artifacts: "artifacts.tar"
tag: v_${{ github.run_number }}
- name: post to slack
run: ./.github/workflows/slack.sh ${{ secrets.POST_SLACK }}
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/slack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl -X POST -H 'Content-type: application/json' --data '{"text":"deploy nin-data-lastejobb"}' $1

0 comments on commit c1c4752

Please sign in to comment.