diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..4915cc6 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,22 @@ +name: Build software +run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 +on: [push] +jobs: + prepare: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 Installing the environment..." + - run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash + - run: nvm install 20 + - run: node -v + - run: npm -v + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - 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 "🍏 Job finished with status ${{ job.status }}." \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..912cfd6 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,33 @@ +version: '3' + +vars: + # Get the application name + repo_name: + sh: basename `git config --get remote.origin.url` .git + repo_version: + sh: | + tag=$(git describe --tags --abbrev=0 2>/dev/null || true) + if [ -z "$tag" ]; then + git rev-parse HEAD + else + echo $tag + fi + +tasks: + # Installing the dependencies to develop dmxconnect + install: + cmds: + - echo "Installing dependencies to contribute to {{.repo_name}}..." + silent: true + + # Running the application + run: + cmds: + - echo "Running {{.repo_name}}..." + silent: true + + # Building the application + build: + cmds: + - echo "Generating {{.repo_name}}_v{{.repo_version}}.deb ..." + silent: true \ No newline at end of file