Update deploy-deno-deploy-files.yml #24
Workflow file for this run
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: 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}}" |