Add git config & fetch #24
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 | |
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: git checkout bundled | |
- run: git show main:output/lexicon.json > lexicon.json | |
- run: git push origin bundled | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "output/lexicon.json" | |
tag: lastest | |
token: ${{ secrets.GITHUB_TOKEN }} |