feat(4): Replace workflow with three
This commit is contained in:
parent
0ea4c5179c
commit
40ea0f6d47
4 changed files with 75 additions and 22 deletions
25
.forgejo/workflows/cd.yml
Normal file
25
.forgejo/workflows/cd.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: CD
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
target:
|
||||
description: "Deployment target"
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- local
|
||||
- staging
|
||||
- prod
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
- name: Deploy
|
||||
run: nix shell nixpkgs#rsync --command ./deploy.sh ${{ inputs.target }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue