-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try this out2 Try this out2 Revert "Try this out2" This reverts commit 11355c4. Try this out2
- Loading branch information
1 parent
bff670a
commit 64804d5
Showing
2 changed files
with
43 additions
and
1 deletion.
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 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: "Docs" | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- README.md | ||
|
||
permissions: | ||
pages: write | ||
contents: write | ||
|
||
jobs: | ||
copy: | ||
name: Copy docs | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: git pull | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: git pull | ||
|
||
- name: Copy README.md to index.md | ||
run: cp README.md index.md | ||
|
||
- name: Deploy to gh-pages | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git checkout -b gh-pages || git checkout gh-pages | ||
git status | ||
git add index.md | ||
git commit -m "Update index.md from README.md" || echo "No changes to commit" | ||
git push origin gh-pages |
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