mirror of
https://github.com/balt-dev/appleone.git
synced 2024-10-31 23:09:42 +00:00
Adjust CI (final) (1)
This commit is contained in:
parent
4aa9482cfb
commit
d668156ac6
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -29,9 +29,6 @@ jobs:
|
||||
|
||||
# The steps to run for each matrix item
|
||||
steps:
|
||||
- name: Get current date
|
||||
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@ -61,22 +58,17 @@ jobs:
|
||||
|
||||
# Define a better name for the final binary
|
||||
BIN_RELEASE="${PROJECT_NAME}-${{ matrix.name }}${BIN_SUFFIX}"
|
||||
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-$NOW-${{ matrix.name }}${BIN_SUFFIX}"
|
||||
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ github.sha }}-${{ matrix.name }}${BIN_SUFFIX}"
|
||||
|
||||
# Move the built binary where you want it
|
||||
mv "${BIN_OUTPUT}" "build/${BIN_RELEASE}"
|
||||
|
||||
- name: Generate release tag
|
||||
id: tag
|
||||
run: |
|
||||
echo "::set-output name=release_tag::$(date +"%Y.%m.%d_%H-%M")"
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||
tag_name: "Commit ${{ github.sha }}"
|
||||
files: |
|
||||
build/*
|
||||
LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user