Skip to content

Update action script #25

Update action script

Update action script #25

Workflow file for this run

name: Release
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno task json
- run: git config --global user.name 'GitHub Action'
- run: git config --global user.email '[email protected]'
- run: git fetch
- run: mv ./output/lexicon.json > /tmp/lexicon.json
- run: git checkout bundled
- run: mv /tmp/lexicon.json ./lexicon.json
- run: git commit -m "Update bundled lexicon"
- run: git push origin bundled
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "output/lexicon.json"
tag: lastest
token: ${{ secrets.GITHUB_TOKEN }}