Update kotlinx-coroutines monorepo to v1.11.0 #87
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/pages.yml' | |
| - 'gradle/libs.versions.toml' | |
| workflow_run: | |
| workflows: ["Release Alkaa"] | |
| types: | |
| - completed | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| if: | | |
| github.event_name == 'push' || | |
| (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Extract version | |
| id: get_version | |
| run: | | |
| VERSION=$(grep 'version_name =' gradle/libs.versions.toml | cut -d '"' -f 2) | |
| if [ -z "$VERSION" ]; then | |
| echo "Error: Failed to extract version from gradle/libs.versions.toml" | |
| exit 1 | |
| fi | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Update version in HTML | |
| run: | | |
| VERSION=${{ steps.get_version.outputs.version }} | |
| sed -i "s/VERSION_PLACEHOLDER/v$VERSION/g" docs/index.html | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: './docs' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |