Compare commits
1 Commits
v0.0.1-dev
...
v0.0.1-dev
| Author | SHA1 | Date | |
|---|---|---|---|
| b3d562216c |
@@ -14,43 +14,10 @@ inputs:
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- if: inputs.configure_runner_environment == 'true'
|
||||
uses: https://gitea.puzzleyou.net/actions/configure-runner-environment@master
|
||||
|
||||
# TODO duplicate code (declare/action.yaml)
|
||||
- name: declare project if neccessary
|
||||
run: |
|
||||
if [[ ! -z "${RELEASE_PROJECT_CURRENT_VERSION}" ]]; then
|
||||
echo "already set up."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
RELEASE_ACTION_STATEFILE=$(mktemp)
|
||||
echo "[release] statefile: $RELEASE_ACTION_STATEFILE"
|
||||
echo "RELEASE_ACTION_STATEFILE="$RELEASE_ACTION_STATEFILE"" \
|
||||
>> "$GITHUB_ENV"
|
||||
|
||||
if [[ "${{ github.ref_name }}" == "master" || "${{ github.ref_name }}" == "main" ]]; then
|
||||
IS_PRE_RELEASE="0"
|
||||
else
|
||||
IS_PRE_RELEASE="1"
|
||||
fi
|
||||
|
||||
nix run ${{ github.action_path }} -- \
|
||||
declare \
|
||||
--state "${RELEASE_ACTION_STATEFILE}" \
|
||||
--release-yaml-filename ".gitea/release.yaml" \
|
||||
--gitea-instance "https://gitea.puzzleyou.net" \
|
||||
--release-repository-name "${{ github.repository }}" \
|
||||
--release-ref-name "${{ github.ref_name }}" \
|
||||
--release-run-number "${{ github.run_number }}" \
|
||||
--release-commit-sha "${{ github.sha }}" \
|
||||
--is-pre-release "${IS_PRE_RELEASE}"
|
||||
|
||||
nix run ${{ github.action_path }} -- \
|
||||
dump \
|
||||
--state "${RELEASE_ACTION_STATEFILE}" \
|
||||
--write-env-vars-to-filename "$GITHUB_ENV"
|
||||
uses: ./declare
|
||||
with:
|
||||
configure_runner_environment: ${{ inputs.configure_runner_environment }}
|
||||
|
||||
- name: publish artefacts
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user