Compare commits
No commits in common. "9723a807112d8ac7548e444d1986106b32b524b3" and "09c2a759d2d0004d905ee8826f875db58ddcc0d4" have entirely different histories.
9723a80711
...
09c2a759d2
18
.gitea/workflows/demo.yaml
Normal file
18
.gitea/workflows/demo.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
steps:
|
||||||
|
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||||
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||||
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ gitea.workspace }}
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
@ -1,36 +0,0 @@
|
|||||||
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"
|
|
Loading…
x
Reference in New Issue
Block a user