added deployment workflow
This commit is contained in:
36
.gitea/workflows/deploy.yaml
Normal file
36
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- Release
|
||||
|
||||
jobs:
|
||||
create_release:
|
||||
steps:
|
||||
- name: Check out den Quellcode
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install build environment
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 'lts'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build source
|
||||
run: npm run build
|
||||
|
||||
- name: create release
|
||||
id: create_release
|
||||
run: |
|
||||
git config user.name "gitea"
|
||||
git config user.email "gitea@git.slpnetwork.de"
|
||||
|
||||
git tag v${{ gitea.run_number }} -m "Automatisches Release erstellt"
|
||||
|
||||
git push origin v${{ gitea.run_number }}
|
||||
|
||||
- name: print release url
|
||||
run: echo "Created release: https://git.slpnetwork.de/${{ gitea.repository }}/releases/tag/v${{ gitea.run_number }}"
|
||||
Reference in New Issue
Block a user