diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..65ca5bc --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -0,0 +1,25 @@ +name: CD + +on: + push: + branches: + - main + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - run: npm ci + - name: Increment tag + id: tag + uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2 + with: + token: ${{ secrets.GITEA_TOKEN }} + - name: Push tag + run: | + git tag ${{ steps.tag.outputs.new-tag }} + git push origin ${{ steps.tag.outputs.new-tag }} diff --git a/README.md b/README.md index ff24588..0ea257c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # actions -Collection of Gitea friendly actions & workflows \ No newline at end of file +Collection of Gitea friendly actions. + +## Actions + +- [release-git-tag](./release-git-tag//README.md) diff --git a/release-git-tag/README.md b/release-git-tag/README.md new file mode 100644 index 0000000..3758d64 --- /dev/null +++ b/release-git-tag/README.md @@ -0,0 +1,9 @@ +# release-git-tag + +Creates and pushes a Git tag to the remote repository. + +```yaml +- uses: ./release-git-tag + with: + tag: v1.0.0 +``` diff --git a/release-git-tag/action.yaml b/release-git-tag/action.yaml new file mode 100644 index 0000000..b74d673 --- /dev/null +++ b/release-git-tag/action.yaml @@ -0,0 +1,15 @@ +name: Release Git tag +description: Releases a Git to origin + +inputs: + tag: + description: The tag to release + required: true + +runs: + using: "composite" + steps: + - shell: bash + run: | + git tag ${{ inputs.tag }} + git push origin ${{ inputs.tag }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..9e28a36 --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>t.behrendt/renovate-configs:common", + "local>t.behrendt/renovate-configs:action" + ] +}