Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to perform test on github actions #2

Merged
merged 5 commits into from
Feb 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: GitHub Actions build preview

on:
workflow_run:
workflows: ["Continuous Integration"]
types:
- completed
workflow_dispatch:

jobs:
deploy:
name: deploy to github action
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- name: Download deployment artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: integration.yml
run_id: ${{ github.event.workflow_run.id }}
name: reposense-deployment
path: .

- name: Unzip deployment artifacts
run: |
unzip ./reposense-deployment.zip

- name: Deploy GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./reposense-report
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Rebuild pages at
Loading