Removed the github release.yml workflow
This commit is contained in:
parent
6e7f5fffc8
commit
0dfadbe3f5
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
@ -1,56 +0,0 @@
|
|||||||
name: Build and Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y build-essential
|
|
||||||
|
|
||||||
- name: Find all C++ files
|
|
||||||
run: |
|
|
||||||
find . -name "*.cpp" | sort > files.txt
|
|
||||||
|
|
||||||
- name: Build executables
|
|
||||||
run: |
|
|
||||||
for file in $(cat files.txt); do
|
|
||||||
g++ -o $file-${{ github.ref_name[0:4] }} $file
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Create folder
|
|
||||||
run: mkdir -p executables
|
|
||||||
|
|
||||||
- name: Move executables to folder
|
|
||||||
run: mv *.${{ github.ref_name[0:4] }} executables/
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Create release
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
with:
|
|
||||||
tag_name: ${{ github.ref_name[0:4] }}
|
|
||||||
release_name: Release ${{ github.ref_name[0:4] }}
|
|
||||||
body: |
|
|
||||||
This is the release ${{ github.ref_name[0:4] }}.
|
|
||||||
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- name: Upload folder
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: executables
|
|
||||||
path: executables/
|
|
Loading…
x
Reference in New Issue
Block a user