attempt no. 2 #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / BundlerInvalid workflow file
|
||
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 | ||