diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml deleted file mode 100644 index 394c807..0000000 --- a/.gitea/workflows/demo.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] - -jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest - 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@v4 - - 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/main.yml b/.gitea/workflows/main.yml index 033564e..5e675cf 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -15,6 +15,9 @@ jobs: id: get_version uses: battila7/get-version-action@v2 - run: echo ${{ steps.get_version.outputs.version-without-v }} + - run: echo ${{ github.repository }} + - run: echo ${{ gitea.repository }} + - run: echo ${{ github.event.release.tag_name }} # Substitute the Manifest and Download URLs in the module.json - name: Substitute Manifest and Download Links For Versioned Ones @@ -24,9 +27,9 @@ jobs: files: 'module.json' env: version: ${{steps.get_version.outputs.version-without-v}} - url: https://github.com/${{github.repository}} - manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json - download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip + url: https://gitea.ascorrea.com/${{github.repository}} + manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json + download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip # Create a zip file with all files required by the module to add to the release - run: zip -r ./module.zip demo.md diff --git a/module.json b/module.json index ab174af..472baff 100644 --- a/module.json +++ b/module.json @@ -1,3 +1,5 @@ { - "name": "new-demo" + "name": "gitea-actions-demo", + "download": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/v0.2.1/module.zip", + "manifest": "https://gitea.ascorrea.com/asc/gitea-actions-demo/releases/download/latest/module.json", } \ No newline at end of file