Update validation.js (and comments) (#726) #384
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: Release Device Repository | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: Release Device Repository | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '~1.18' | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.83.1' | |
# extended: true | |
- name: Download Go dependencies | |
run: | | |
cd website/ | |
make go.deps | |
- name: Build content | |
run: | | |
cd website/ | |
make go.build | |
- name: Build assets | |
run: | | |
cd website/ | |
yarn install | |
yarn build | |
env: | |
BASE_URL: https://www.thethingsnetwork.org | |
BASE_PATH: /device-repository | |
- name: Build Hugo | |
run: | | |
cd website/ | |
make hugo.build.public | |
env: | |
BASE_URL: https://www.thethingsnetwork.org | |
BASE_PATH: /device-repository | |
- name: Deploy Device Repository to Github pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: website/public |