Skip to content

Update and improve elsys.js (#767) #415

Update and improve elsys.js (#767)

Update and improve elsys.js (#767) #415

Workflow file for this run

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
- name: Make devices.csv
run: make devices.csv
- name: Sync devices.csv to airtable
run: |
curl -X POST ${{ secrets.AIRTABLE_DEVICES_API_ENDPOINT }} \
-H "Authorization: Bearer ${{ secrets.AIRTABLE_DEVICES_API_KEY }}" \
-H "Content-Type: text/csv" \
--data-binary "@bin/devices.csv"