Skip to content

fix: Create a release is not needed, only artifact #2

fix: Create a release is not needed, only artifact

fix: Create a release is not needed, only artifact #2

name: Build and Archive
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-archive:
runs-on: ubuntu-latest
env:
PROJECT_NAME: sw360
PROJECT_BOT_NAME: SW360 Bot
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21.5'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install postcss-cli
run: npm ci
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.111.3'
extended: true
- uses: actions/cache@v3
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build SW360 Hugo
shell: bash
run: |
mkdir -p themes/docsy
hugo --minify -b 'https://www.eclipse.org/sw360/'
- name: Archive
uses: actions/upload-artifact@v2
with:
name: website
path: ./public