-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alina Buzachis <[email protected]>
- Loading branch information
1 parent
c2c7628
commit f05b0f6
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# Copyright (c) Ansible Project | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
# Inspired by https://www.josephguadagno.net/2024/04/03/migrate-to-github-actions-from-pages-legacy-worker | ||
|
||
name: Deploy gh-pages branch to GitHub Pages | ||
'on': | ||
push: | ||
branches: | ||
- gh-pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: # Do not run workflow in parallel! | ||
cancel-in-progress: false | ||
group: pages | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: https://ansible-collections.github.io/community.crypto/ | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup GitHub Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload gh-pages branch as artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: . | ||
|
||
- name: Deploy gh-pages branch to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |