Skip to content

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #1148

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo…

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #1148

Workflow file for this run

name: Build and Release
on: push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GATSBY_SPACE_ID: ${{ secrets.GATSBY_SPACE_ID }}
GATSBY_ACCESS_TOKEN: ${{ secrets.GATSBY_ACCESS_TOKEN }}
DOMAIN: volt.camp
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Keep npm cache around to speed up installs
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- name: Build
env:
PUBLIC_VERSION: ${{ github.sha }}
run: npm run build
- uses: actions/upload-artifact@v3
if: always()
with:
name: needs-assessment-${{ github.sha }}
path: public
- name: Publish to GitHub pages
if: github.ref == 'refs/heads/saga'
run: |
echo "machine github.com login accesskey password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
git config --global user.email "actions@example.com"
git config --global user.name "GitHub Actions"
cd public
touch .nojekyll
echo ${{ env.DOMAIN }} > CNAME
git init
git add -A
git commit -m "update website"
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git
git push -f origin HEAD:gh-pages
- name: Semantic release
continue-on-error: true
run: npx semantic-release