Initial commit
This commit is contained in:
35
templates/cli-setup/.gitea/workflows/deploy.yaml
Normal file
35
templates/cli-setup/.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Deploy Distribution
|
||||
run-name: ${{ gitea.actor }} is Deploying 🚀
|
||||
on: [release]
|
||||
|
||||
jobs:
|
||||
Deploy-Distribution:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Deploying to Cloud 🚀"
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Verify components
|
||||
uses: https://source.webprovisions.io/webprovisions/registry-action@v4
|
||||
with:
|
||||
registry-token: ${{ secrets.REGISTRY_KEY }}
|
||||
|
||||
- name: Start build
|
||||
run: |
|
||||
curl -X PUT "${{secrets.wpapi}}/distributions/${{env.GITHUB_REPOSITORY}}/status" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"version": "'${{ github.event.release.tag_name }}'", "status": "in-progress"}'
|
||||
|
||||
- name: Install Dependencies & Build
|
||||
run: |
|
||||
npm install
|
||||
npm run build-prod
|
||||
|
||||
- name: Deploy Distribution
|
||||
uses: https://source.webprovisions.io/webprovisions/deploy-action@v1
|
||||
with:
|
||||
minio_access_key: ${{ secrets.minioaccess }}
|
||||
minio_secret_key: ${{ secrets.miniosecret }}
|
||||
minio_host: ${{ secrets.miniohost }}
|
||||
wp_api: ${{ secrets.wpapi }}
|
||||
Reference in New Issue
Block a user