Skip to content

ci: bundle after the release action maybe? #64

ci: bundle after the release action maybe?

ci: bundle after the release action maybe? #64

Workflow file for this run

name: cd
on: [push]
jobs:
build-ubuntu:
strategy:
fail-fast: false
matrix:
target:
- { os: ubuntu-latest, platform: linux-x64 }
- { os: macos-latest, platform: macos-arm64 }
runs-on: ${{ matrix.target.os }}
env:
PLATFORM: ${{ matrix.target.platform }}
steps:
- uses: actions/checkout@v2
- name: Build for ${{ matrix.target.platform }}
run: |
./lang d bash c embedded-template html java javascript json python ruby rust
- name: Prepare git # To get tags from `git describe`
run: git fetch --prune --unshallow
- name: Make .deb
if: matrix.target.os == 'ubuntu-latest'
run: |
./package/deb
- name: Make zip and tar
run: |
./package/zip
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.vars.outputs.sha_short }}
name: Release ${{ github.ref }}-${{ steps.vars.outputs.sha_short }}
draft: true
files: |
./lib/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-macos:
strategy:
fail-fast: false
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build for macos
env:
PLATFORM: "macos-arm64"
run: |
./lang d bash c embedded-template html java javascript json python ruby rust
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.vars.outputs.sha_short }}
name: Release ${{ github.ref }}-${{ steps.vars.outputs.sha_short }}
draft: true
files: |
./lib/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-fixed-assets:
needs: [build-ubuntu, build-macos]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare git # To get tags from `git describe`
run: git fetch --prune --unshallow
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.vars.outputs.sha_short }}
name: Release ${{ github.ref }}-${{ steps.vars.outputs.sha_short }}
draft: true
files: ref
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: list everything local
run: |
apt update -y
apt install tree -y
tree .