Skip to content

Bump actions/upload-artifact from 3 to 4 #64

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #64

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
# We need to get all git revisions for `git describe` to work
fetch-depth: 0
persist-credentials: false
- name: Add MSVC to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Set up nasm
uses: ilammy/setup-nasm@v1
with:
version: 2.16.01
- name: Build
run: CALL "build.bat"
shell: cmd
- name: Set Version variable
run: echo "JPEGOPTIM_VER=$(git describe --tags --long)" >> $GITHUB_ENV
shell: bash
- name: Prepare files
run: |
mkdir dist
cp Release/x64/jpegoptim.exe src/jpegoptim/COPYRIGHT src/jpegoptim/LICENSE src/jpegoptim/README dist/
shell: bash
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: "jpegoptim-${{ env.JPEGOPTIM_VER }}"
path: dist/
if-no-files-found: error