aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/publish.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/publish.yml')
-rw-r--r--.github/workflows/publish.yml35
1 files changed, 9 insertions, 26 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 05f1730..06e6358 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,9 +1,6 @@
name: Publish
-on:
- push:
- tags:
- - 'v*'
+on: [push, pull_request]
jobs:
publish:
@@ -23,6 +20,7 @@ jobs:
- riscv64gc-unknown-linux-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
+ - x86_64-unknown-freebsd
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
@@ -101,6 +99,13 @@ jobs:
cross: false
strip: true
compress: true
+ - os: ubuntu-latest
+ target: x86_64-unknown-freebsd
+ artifact_name: target/x86_64-unknown-freebsd/release/miniserve
+ release_name: x86_64-unknown-freebsd
+ cross: true
+ strip: true
+ compress: true
steps:
- name: Checkout code
@@ -126,25 +131,3 @@ jobs:
args: --lzma
strip: ${{ matrix.strip }}
if: ${{ matrix.compress }}
-
- - name: Get tag name
- id: tag_name
- run: |
- echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
- shell: bash
-
- - name: Get CHANGELOG.md entry
- id: changelog_reader
- uses: mindsers/changelog-reader-action@v1
- with:
- version: ${{ steps.tag_name.outputs.current_version }}
- path: ./CHANGELOG.md
-
- - name: Release
- uses: svenstaro/upload-release-action@v2
- with:
- repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: ${{ matrix.artifact_name }}
- tag: ${{ github.ref }}
- asset_name: miniserve-$tag-${{ matrix.release_name }}
- body: ${{ steps.changelog_reader.outputs.log_entry }}