Skip to content

Commit

Permalink
Merge pull request #246 from mcorino/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mcorino committed Feb 5, 2024
2 parents 315fe3d + e4e788c commit 263341a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,44 @@ jobs:
run: |
bundle exec yardoc
- name: Upload doc archive
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
with:
name: wxruby3-html-reference
path: rdoc
overwrite: true

- name: Setup Pages
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: actions/configure-pages@v4

- name: Upload artifact
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: actions/upload-pages-artifact@v3
with:
# Upload Yard output only
path: 'rdoc'
path: rdoc

- name: Deploy to GitHub Pages
if: ${{ github.event_name != 'workflow_dispatch' }}
id: deployment
uses: actions/deploy-pages@v4

- name: Archive html references docs
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
tar \
--dereference --hard-dereference \
--directory "rdoc" \
-czf "$RUNNER_TEMP/wxruby3-html-reference.tar.gz" \
"."
- name: Upload doc archive as release asset
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ runner.temp }}/wxruby3-html-reference.tar.gz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 263341a

Please sign in to comment.