Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
osyu committed Aug 14, 2022
0 parents commit d91fe2b
Show file tree
Hide file tree
Showing 13 changed files with 1,400 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
67 changes: 67 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build workflow

on:
push:
branches: master
paths-ignore: '**.md'
pull_request:
paths-ignore: '**.md'
release:
types: published

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main

- name: Checkout sendproxy
uses: actions/checkout@main
with:
repository: arthurdead/sendproxy
path: sendproxy

- name: Set up spcomp
uses: rumblefrog/setup-sp@master
with:
version: 1.11.x

- name: Compile plugin
working-directory: addons/sourcemod/scripting/
env:
include: ${{ github.workspace }}/sendproxy/sourcemod/scripting/include/
run: |
mkdir ../plugins
spcomp64 -v2 -E -i$include misere.sp -o ../plugins/misere.smx
- name: Create archive
run: |
7za a -r misere.zip addons/ models/
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: package
path: misere.zip

upload-release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'

steps:
- name: Download artifact
uses: actions/download-artifact@main
with:
name: package

- name: Upload release asset
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: misere.zip
asset_name: misere.zip
asset_content_type: application/zip
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.1.0 (2022-08-13)

- Initial release
Loading

0 comments on commit d91fe2b

Please sign in to comment.