Skip to content

other auto release action #9

other auto release action

other auto release action #9

Workflow file for this run

name: Release
on:
push:
tags: ["v*.*.*"]
env:
CARGO_TERM_COLOR: always
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose --release
- name: copy build artifact to zip file
shell: powershell
working-directory: ${{ github.workspace }}
run: |
cp .\target\release\timeline.dll .\timeline\timeline.dll
Compress-Archive .\timeline\ timeline-win-x86_64.zip -u
- name: Upload Archive
uses: actions/upload-artifact@v3
with:
name: timeline-win-x86_64
path: timeline-win-x86_64.zip
compression-level: 0
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose --release
- name: copy build artifact to zip file
working-directory: ${{ github.workspace }}
run: |
cp ./target/release/libtimeline.dylib ./timeline/libtimeline.dylib
zip -r timeline-macos-x86_64.zip ./timeline
- name: Upload Archive
uses: actions/upload-artifact@v3
with:
name: timeline-macos-x86_64
path: timeline-macos-x86_64.zip
compression-level: 0
do-release:
runs-on: ubuntu-latest
needs: [build-windows, build-macos]
permissions:
contents: write
steps:
- name: Download Windows Build
uses: actions/download-artifact@v3
with:
name: timeline-win-x86_64
path: timeline-win-x86_64.zip
- name: Download MacOS Build
uses: actions/download-artifact@v3
with:
name: timeline-macos-x86_64
path: timeline-macos-x86_64.zip
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
working-directory: ${{ github.workspace }}

Check failure on line 70 in .github/workflows/releases.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/releases.yml (Line: 70, Col: 9): Unexpected value 'working-directory'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
*.zip