Skip to content

Commit

Permalink
Fix release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Sep 16, 2024
1 parent 5256459 commit b66a0fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 224 deletions.
102 changes: 0 additions & 102 deletions .github/workflows/nightly.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/release.yml

This file was deleted.

24 changes: 8 additions & 16 deletions .github/workflows/release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches: [ release/** ]

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -27,26 +30,15 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: gradle

- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export REMOTE="https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git"
git remote set-url origin "$REMOTE"
git clone "$REMOTE" --branch gh-pages build/gh-pages
./gradlew build
./gradlew -x build buildSite
ls -AlF site/build/site
- env:
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew --no-daemon -x test release

- run: |
cp -rf site/build/site/* build/gh-pages/
cd build/gh-pages
git add --all
git commit -m "Publishing to gh-pages"
git push origin gh-pages
push_site:
uses: hexagontk/hexagon/.github/workflows/site.yml@develop
needs: publish
with:
options: -P pushSite=true
62 changes: 0 additions & 62 deletions .github/workflows/site.yml

This file was deleted.

0 comments on commit b66a0fd

Please sign in to comment.