Skip to content

Commit

Permalink
./
Browse files Browse the repository at this point in the history
  • Loading branch information
aeghn committed Nov 24, 2024
1 parent d8eddae commit 439891e
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/restop.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
name: Create release

on:
workflow_dispatch:
inputs:
sha:
description: "Commit SHA to create release from"
required: true
tag:
description: "Tag of the release"
required: true
push:
tags:
- 'v*'
on: [push]

jobs:
create-release:
Expand All @@ -22,7 +11,7 @@ jobs:
- name: Show GLIBC
run: ldd --version
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v1
with:
ref: ${{ github.event.inputs.sha || env.GITHUB_SHA }}

Expand All @@ -32,12 +21,6 @@ jobs:
echo "INPUT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "INPUT_TAG=$(git tag --points-at HEAD)" >> $GITHUB_ENV
- name: Set env on trigger
if: github.event_name == 'workflow_dispatch'
run: |
echo "INPUT_SHA=${{ github.event.inputs.sha }}" >> $GITHUB_ENV
echo "INPUT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -81,4 +64,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.ARCHIVE_NAME }}
asset_name: ${{ env.ARCHIVE_NAME }}
asset_content_type: application/tar+gzip
asset_content_type: application/tar+gzip

0 comments on commit 439891e

Please sign in to comment.