chore: test #36
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
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/[email protected] | |
- name: Deloy as user | |
run: bash -leo | |
- name: Install dependencies | |
run: deno install | |
- run: | | |
touch .env | |
echo "${{ secrets.ENV }}" >> .env | |
- name: Run deloy script | |
run: deno task deloy | |
- name: Stop all proccesses | |
run: pm2 delete all || true | |
- name: Start a new process | |
run: pm2 start "deno task start" |