From 006af61985fb0184a10849758b7e8d404a9df19e Mon Sep 17 00:00:00 2001 From: steev Date: Tue, 3 Oct 2023 16:55:46 +0200 Subject: [PATCH 1/3] added deployment workflow --- .gitea/workflows/demo.yaml | 18 ------------------ .gitea/workflows/deploy.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 18 deletions(-) delete mode 100644 .gitea/workflows/demo.yaml create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml deleted file mode 100644 index 71149b3..0000000 --- a/.gitea/workflows/demo.yaml +++ /dev/null @@ -1,18 +0,0 @@ -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 }}." \ No newline at end of file diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..46e813e --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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 }}" \ No newline at end of file From 8f13325ed758e802eb9fd9520716d646ea8405de Mon Sep 17 00:00:00 2001 From: Steev Date: Tue, 3 Oct 2023 16:59:14 +0200 Subject: [PATCH 2/3] .gitea/workflows/deploy.yaml aktualisiert --- .gitea/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 46e813e..6e10a7f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -32,5 +32,5 @@ jobs: 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 }}" \ No newline at end of file + - name: Print Release URL + run: echo "Created release: https://git.slpnetwork.de/Steev/steevcss/releases/tag/v${{ github.run_number }}" \ No newline at end of file From 6f7ba303d4fbca432e579cbedf9f0bdf0a65869d Mon Sep 17 00:00:00 2001 From: Steev Date: Tue, 3 Oct 2023 16:59:55 +0200 Subject: [PATCH 3/3] .gitea/workflows/deploy.yaml aktualisiert --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6e10a7f..c9779de 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -33,4 +33,4 @@ jobs: git push origin v${{ gitea.run_number }} - name: Print Release URL - run: echo "Created release: https://git.slpnetwork.de/Steev/steevcss/releases/tag/v${{ github.run_number }}" \ No newline at end of file + run: echo "Created release" \ No newline at end of file