Skip to content

Commit

Permalink
add publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
stkevintan committed Jul 23, 2020
1 parent adc8b34 commit 7ff2c33
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,28 @@ jobs:
pip install -r ./scripts/requirements.txt
python scripts/get_members.py --token ${{ secrets.GITHUB_TOKEN }}
python scripts/init_database.py -r ./posts --token ${{ secrets.GITHUB_TOKEN }}
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload_release_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./prisma/dev.db
asset_name: dev.db
asset_content_type: application/octet-stream

- name: Publish to Zeit
uses: amondnet/vercel-action@v19.0.1+1
Expand Down

0 comments on commit 7ff2c33

Please sign in to comment.