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]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker # default is alpine:3.19
|
||||
runs-on: docker
|
||||
container:
|
||||
image: debian:stable-slim
|
||||
image: node:16-bullseye" # Default for Forgejo
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- shell: ash
|
||||
run: |
|
||||
ls ${{ github.workspace }}
|
||||
|
||||
# - name: Setup Node.js
|
||||
# uses: xxxxxxxxxxxxxxxxxx@xx
|
||||
# with:
|
||||
# node-version: '12.x'
|
||||
# - name: Install dependencies
|
||||
# run: npm install
|
||||
# - name: Build
|
||||
# run: npm run build
|
||||
# - name: Deploy
|
||||
# uses: xxxxxxxxxxxxxxxxxxxxxxxxxx@xx
|
||||
# with:
|
||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# publish_dir: ./dist
|
||||
ls ${{ github.workspace }
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Build
|
||||
run: npx @11ty/eleventy
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
deploy:
|
||||
needs: [build]
|
||||
runs-on: docker # Defaults to Alpine in my runner
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: dist
|
||||
- name: List all files
|
||||
shell: ash
|
||||
run: |
|
||||
ls -la dist
|
Loading…
Reference in a new issue