-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (43 loc) · 1.37 KB
/
deploy-deno-deploy-files.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: push build to deploy branch
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: git-checkout
uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install make
run: sudo apt update && sudo apt install make -y
- name: build deploy folder
run: make deploy
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: deno-deploy-data
FOLDER: deploy
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"
send-version-notification:
runs-on: ubuntu-latest
needs: build
steps:
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- run: |
echo "Waiting for the deploy branch to be updated"
sleep 30
- name: Notify demo
run: |
deno run --allow-net --unstable --import-map https://raw.githubusercontent.com/K0IN/Notify/main/app/backend/deno.json https://raw.githubusercontent.com/K0IN/Notify/main/app/backend/main.ts notify -r https://notify-demo.deno.dev/api/notify -t "New notify version" -m "New Version Released ${{github.ref}}"