Merge pull request #300 from quarckster/pre-commit-ci-update-config #126
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: deploy | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fix permissions | |
run: chmod -R a+rw ${PWD} | |
- name: Build an addon | |
env: | |
VERSION: ${{ github.ref_name }} | |
run: make video_addon | |
- name: List files | |
run: ls -lh | |
- name: Create a release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: video.kino.pub-${{ github.ref_name }}.zip | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
- name: Deploy to Netlify | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
VERSION: ${{ github.ref_name }} | |
run: make deploy |