diff --git a/.gitea/workflows/check-publish-release.yml b/.gitea/workflows/check-publish-release.yml new file mode 100644 index 0000000..6576f96 --- /dev/null +++ b/.gitea/workflows/check-publish-release.yml @@ -0,0 +1,27 @@ +name: Ssg Check, Publish, and Release +on: + push: + tags: + - v* +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v4 + - name: Setup Java. + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - name: Check libraries + run: ./gradlew check + - name: Publish to git.jessebrault.com + run: ./gradlew publishAllPublicationsToGiteaRepository + - name: Release to git.jessebrault.com + uses: https://gitea.com/actions/release-action@main + with: + files: |- + cli/build/distributions/*.tar + cli/build/distributions/*.zip + api_key: '${{secrets.RELEASE_TOKEN}}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 183d0dc..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: StaticSiteGenerator Release -on: - push: - tags: - - 'v*' -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: adopt - cache: gradle - - name: Gradle Test - run: ./gradlew test - - name: Gradle Install - run: ./gradlew :cli:assembleDist - - name: Release - uses: ncipollo/release-action@v1 - with: - artifacts: 'cli/build/distributions/*.tar,cli/build/distributions/*.zip' - name: ${{ env.GITHUB_REF_NAME }} - tag: ${{ env.GITHUB_REF_NAME }} - token: ${{ secrets.GITHUB_TOKEN }} -