la til dependabot for github action (#1626) #37
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
name: Oppgaver | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '10' | |
- name: Clone codeclub-viewer | |
run: git clone --depth=1 --branch=master https://github.com/kodeklubben/codeclub-viewer.git ../codeclub-viewer | |
- name: Install Dependencies | |
run: | | |
cd ../codeclub-viewer | |
yarn install | |
- name: Build | |
run: | | |
cd ../codeclub-viewer | |
yarn build:travis | |
- name: Deploy | |
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.NORWEGIANMANGO }} | |
publish_branch: master | |
publish_dir: ../codeclub-viewer/dist | |
cname: oppgaver.kidsakoder.no | |
external_repository: kodeklubben/kodeklubben.github.io |