-
Notifications
You must be signed in to change notification settings - Fork 17
35 lines (33 loc) · 896 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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