From 0b23795ba26623c10f904c7851fffea50e17ca66 Mon Sep 17 00:00:00 2001 From: Louis Guidez reind33r Date: Wed, 7 Feb 2024 23:36:17 +0100 Subject: [PATCH] testing actions --- .forgejo/workflows/deploy.yaml | 40 +++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) 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