Skip to content

New Linux, Static, V runtimes #482

New Linux, Static, V runtimes

New Linux, Static, V runtimes #482

Workflow file for this run

name: Build
on:
pull_request:
types: [opened, closed, synchronize, reopened]
branches: [ main ]
jobs:
build:
name: Build in Fork Context
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
steps:
- uses: actions/checkout@v4
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Build fork
env:
HUGO_VERSION: '0.147.8'
run: |
HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
wget -qO- ${HUGO_URL} | tar -xz -C /usr/local/bin
./clevercloud-deploy-script.sh
- name: Upload artifact
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
name: build-${{ github.event.pull_request.head.sha }}
path: public/
include-hidden-files: true
- name: Output artifact ID
run: echo 'Artifact name is ${{ github.sha }}, ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}'