testing actions
This commit is contained in:
parent
5886283e39
commit
0b23795ba2
1 changed files with 23 additions and 17 deletions
|
@ -5,25 +5,31 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker # default is alpine:3.19
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: debian:stable-slim
|
image: node:16-bullseye" # Default for Forgejo
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- shell: ash
|
- shell: ash
|
||||||
run: |
|
run: |
|
||||||
ls ${{ github.workspace }}
|
ls ${{ github.workspace }
|
||||||
|
- name: Install dependencies
|
||||||
# - name: Setup Node.js
|
run: npm install
|
||||||
# uses: xxxxxxxxxxxxxxxxxx@xx
|
- name: Build
|
||||||
# with:
|
run: npx @11ty/eleventy
|
||||||
# node-version: '12.x'
|
- name: Upload artifact
|
||||||
# - name: Install dependencies
|
uses: actions/upload-artifact@v3
|
||||||
# run: npm install
|
with:
|
||||||
# - name: Build
|
name: dist
|
||||||
# run: npm run build
|
path: dist/
|
||||||
# - name: Deploy
|
deploy:
|
||||||
# uses: xxxxxxxxxxxxxxxxxxxxxxxxxx@xx
|
needs: [build]
|
||||||
# with:
|
runs-on: docker # Defaults to Alpine in my runner
|
||||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
steps:
|
||||||
# publish_dir: ./dist
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
- name: List all files
|
||||||
|
shell: ash
|
||||||
|
run: |
|
||||||
|
ls -la dist
|
Loading…
Reference in a new issue