Skip to content

attempt no. 2

attempt no. 2 #48

Workflow file for this run

name: Bundler
on:
push:
paths-ignore:
- 'LICENSE'
- '*.md'
branches:
- main
pull_request:
paths-ignore:
- 'LICENSE'
- '*.md'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- {os: ubuntu-latest}
- {os: macos-12}
- {os: macos-latest}
- {os: windows-latest}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
entry: tests/testbundle.art
version: 1.0.0
- name: Run tests
run: |
./testbundle
shell: bash
release:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [test]
steps:
- name: Download Artifact
env:
RELEASE: ${{ needs.test.outputs.RELEASE }}
if: ${{ env.RELEASE == 'true' }}
uses: actions/download-artifact@v2
with:
path: ./assets
- name: Create Release
if: ${{ env.RELEASE == 'true' }}
id: create-release
uses: actions/create-release@v1
env:
RELEASE: ${{ needs.test.outputs.RELEASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXEFILE: ${{ needs.test.outputs.EXEFILE }}
VERS: ${{ needs.test.outputs.VERS }}
RELDESC: ${{ need.test.outputs.RELDESC }}

Check failure on line 66 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Bundler

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 66, Col: 26): Unrecognized named-value: 'need'. Located at position 1 within expression: need.test.outputs.RELDESC .github/workflows/test.yml (Line: 82, Col: 15): 'env' is already defined
with:
tag_name: ${{ github.ref_name }}
release_name: "${{ env.EXEFILE }} ${{ env.VERS }}"
body: |
${{ env.EXEFILE }} ${{ env.VERS }} Release
${{ env.RELDESC }}
draft: false
prerelease: false
- name: Upload Release Assets
env:
RELEASE: ${{ needs.test.outputs.RELEASE }}
if: ${{ env.RELEASE == 'true' }}
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create-release.outputs.id }}
assets_path: ./assets