From f75bbb01bcd8bdf7d75dad593f67344725847391 Mon Sep 17 00:00:00 2001 From: daflyinbed <1677759063@qq.com> Date: Mon, 15 Apr 2024 00:13:16 +0800 Subject: [PATCH] feat: setup ci --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/exclude | 6 ++++++ .gitmodules | 4 ---- vendor | 1 - 4 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/exclude delete mode 160000 vendor diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..1b9c04b63c071 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/exclude b/.github/workflows/exclude new file mode 100644 index 0000000000000..821d7f6859530 --- /dev/null +++ b/.github/workflows/exclude @@ -0,0 +1,6 @@ +.* +DEVELOPERS.md +Gruntfile.js +package-lock.json +package.json +phpunit.xml.dist diff --git a/.gitmodules b/.gitmodules index 97a5e8b2ac6cc..b4815c537c2e1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/vendor b/vendor deleted file mode 160000 index d956a21297001..0000000000000 --- a/vendor +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d956a212970015f5b8cf5eb318a6f2a6ac5f7f83