diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 40d1316..210c8ab 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -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 \ No newline at end of file + 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 \ No newline at end of file