Skip to content

Commit

Permalink
feat: setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daflyinbed committed Apr 14, 2024
1 parent 3324d89 commit f75bbb0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy

on:
push:
branches:
- MC1_39

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- name: Install dependencies
run: composer update --no-dev

- name: Pack
run: |
tar -czvf --exclude-from=./.github/workflows/exclude dist.tgz .
- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist.tgz
6 changes: 6 additions & 0 deletions .github/workflows/exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.*
DEVELOPERS.md
Gruntfile.js
package-lock.json
package.json
phpunit.xml.dist
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,3 @@
path = skins/Vector
url = https://gerrit.wikimedia.org/r/mediawiki/skins/Vector
branch = REL1_39
[submodule "vendor"]
path = vendor
url = https://gerrit.wikimedia.org/r/mediawiki/vendor
branch = REL1_39
1 change: 0 additions & 1 deletion vendor
Submodule vendor deleted from d956a2

0 comments on commit f75bbb0

Please sign in to comment.