Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJlvt authored Feb 7, 2024
1 parent 1ebdcfc commit 3572ec9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Release

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up build environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Build with make
run: make

- name: Add permissions
run: chmod +x ./my_sokoban

- name: Create Tag
id: tag
run: echo "TAG=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
my_sokoban
tag_name: ${{ env.TAG }}
token: ${{ secrets.TOKEN }}

0 comments on commit 3572ec9

Please sign in to comment.