mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-07-23 11:40:46 +03:00
Update hugo.yml
This commit is contained in:
49
.github/workflows/hugo.yml
vendored
49
.github/workflows/hugo.yml
vendored
@@ -60,52 +60,3 @@ jobs:
|
||||
--gc \
|
||||
--minify \
|
||||
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||
- name: Change color
|
||||
run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css
|
||||
- name: Change URI
|
||||
run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} +
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./public
|
||||
|
||||
# Deployment job
|
||||
deploy-page:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
deploy-neocities:
|
||||
environment:
|
||||
name: neocities
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: .
|
||||
- name: Create directory
|
||||
run: mkdir public
|
||||
- name: Unapacking artifact
|
||||
run: tar xf github-pages/artifact.tar -C public
|
||||
- name: Change URI
|
||||
run: find public -type f -exec sed -i 's/\/\/fruworg.github.io/\/\/fruworg.neocities.org/g' {} +
|
||||
- name: Rename 404 page
|
||||
run: mv public/404.html public/not_found.html
|
||||
- name: Change color
|
||||
run: sed -i 's/rebeccapurple/mediumseagreen/g' public/css/main.*.css
|
||||
- name: Delete id_rsa.pub
|
||||
run: rm public/id_rsa.pub
|
||||
- name: Deploy to Neocities
|
||||
uses: bcomnes/deploy-to-neocities@v1
|
||||
with:
|
||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
cleanup: true
|
||||
dist_dir: public
|
||||
|
Reference in New Issue
Block a user