Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
M-logique committed Sep 8, 2024
1 parent 83047f7 commit 53df8f4
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ jobs:
run: |
cd go_spammer
go build -o spammer.dll -buildmode=c-shared main.go
mv spammer.dll ../shared/spammer.dll
if (Test-Path ../shared/spammer.dll) { Remove-Item ../shared/spammer.dll }
Move-Item spammer.dll ../shared/spammer.dll
shell: pwsh

- name: Check for changes and commit
- name: Configure Git
run: |
git config --global user.email "your-email@example.com"
git config --global user.email "lmy615730@gmail.com"
git config --global user.name "GitHub Actions"
- name: Check for changes and commit
run: |
git diff --exit-code || (git add shared/spammer.dll && git commit -m "Add built spammer.dll for Windows" && git push)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,12 +57,16 @@ jobs:
run: |
cd go_spammer
go build -o spammer.so -buildmode=c-shared main.go
if [ -f ../shared/spammer.so ]; then rm ../shared/spammer.so; fi
mv spammer.so ../shared/spammer.so
- name: Check for changes and commit
- name: Configure Git
run: |
git config --global user.email "your-email@example.com"
git config --global user.email "lmy615730@gmail.com"
git config --global user.name "GitHub Actions"
- name: Check for changes and commit
run: |
git diff --exit-code || (git add shared/spammer.so && git commit -m "Add built spammer.so for Linux" && git push)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 53df8f4

Please sign in to comment.