Implement Jekyll CI workflow with docker #2
|
@ -6,10 +6,6 @@ jobs:
|
||||||
test-ci-actions:
|
test-ci-actions:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Verify setup
|
|
||||||
id: verify_setup
|
|
||||||
run: |
|
|
||||||
env | sort
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -53,13 +49,9 @@ jobs:
|
||||||
VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$")
|
VOL=$(docker volume ls | grep -Po "GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-Jekyll_JOB-test-ci-actions$")
|
||||||
docker-compose run --rm -v "${VOL}:/home/ubuntu/workspace" jekyll build --verbose
|
docker-compose run --rm -v "${VOL}:/home/ubuntu/workspace" jekyll build --verbose
|
||||||
- name: Upload Jekyll site
|
- name: Upload Jekyll site
|
||||||
id: upload_site
|
|
||||||
uses: "actions/upload-artifact@v3"
|
uses: "actions/upload-artifact@v3"
|
||||||
with:
|
with:
|
||||||
name: jekyll-site
|
name: jekyll-site
|
||||||
path: _site
|
path: _site
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
- name: Verify site
|
|
||||||
id: verify_site
|
|
||||||
run: |
|
|
||||||
echo "${{ steps.upload_site.outputs.artifact-url }}"
|
|
||||||
|
|
Loading…
Reference in New Issue