From 52b41cb9d28a64c80fa57cd8100d3217976cd46c Mon Sep 17 00:00:00 2001 From: suroh Date: Fri, 2 Feb 2024 14:54:35 +0100 Subject: [PATCH 1/4] added test workflow --- .gitea/workflows/test-action.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/test-action.yml diff --git a/.gitea/workflows/test-action.yml b/.gitea/workflows/test-action.yml new file mode 100644 index 0000000..15a61d6 --- /dev/null +++ b/.gitea/workflows/test-action.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.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 ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 68c45eec77d53af5097494a6ef63a1745c348e28 Mon Sep 17 00:00:00 2001 From: suroh Date: Fri, 2 Feb 2024 15:03:13 +0100 Subject: [PATCH 2/4] another change to test workflow --- .gitea/workflows/test-action.yml | 12 ++++++------ README.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test-action.yml b/.gitea/workflows/test-action.yml index 15a61d6..86e6ee3 100644 --- a/.gitea/workflows/test-action.yml +++ b/.gitea/workflows/test-action.yml @@ -5,14 +5,14 @@ jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - run: echo "The ${{ github.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 ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - run: echo "This job's status is ${{ job.status }}." diff --git a/README.md b/README.md index 7fb9f19..8669ef1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # work.suroh.tk -Repository of my homepage. Built on 11ty using webc. +Repository of my homepage. From 0c2fe8a63e90e5f759ee3ef024b3bf8948b08b4d Mon Sep 17 00:00:00 2001 From: suroh Date: Fri, 2 Feb 2024 15:15:57 +0100 Subject: [PATCH 3/4] added beginning of deployment runner --- .gitea/workflows/test-action.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .gitea/workflows/test-action.yml diff --git a/.gitea/workflows/test-action.yml b/.gitea/workflows/test-action.yml deleted file mode 100644 index 86e6ee3..0000000 --- a/.gitea/workflows/test-action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "The ${{ github.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 ${{ github.workspace }} - - run: echo "This job's status is ${{ job.status }}." From d5c1ee51c61ad1a896c767658bebf23eafd64a1f Mon Sep 17 00:00:00 2001 From: suroh Date: Fri, 2 Feb 2024 15:16:07 +0100 Subject: [PATCH 4/4] added beginning of deployment runner --- .gitea/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..70bca14 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,21 @@ +name: work.suroh.tk deploy +run-name: ${{ github.action_repository }} is being built and deployed +on: + push: + branches: + - 'main' +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - name: Clone code to runner + uses: actions/checkout@v4 + + - name: Move to directory + run: cd ${{ github.workspace }} + + - name: Building dependencies + run: npm ci + + - name: Check deployment directory + run: ls -lh /var/www/