From b0713a55fbbff2c6f8afcd4ba15594fd9de4b0e4 Mon Sep 17 00:00:00 2001 From: PyvesB Date: Sun, 22 Nov 2020 12:05:47 +0000 Subject: [PATCH] Remove GitHub publish action for the time being --- .github/workflows/publish.yml | 42 ----------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 140cf6c..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Publish new plugin version - -on: - release: - types: [published] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Build with Maven - run: mvn clean install - - name: Commit files - run: | - echo "Checking out update site" - git checkout gh-pages - echo "Cleaning up previous files" - git rm -r artifacts.jar - git rm -r artifacts.xml.xz - git rm -r content.jar - git rm -r content.xml.xz - git rm -r features/* - git rm -r plugins/* - git rm -r eclipse-* - echo "Coping files over" - mv -v eclipse-solargraph-updatesite/target/repository/* . - echo "Setting up Git config" - git config user.name '${{ github.actor}}' - git config user.email '${{ github.actor}}@users.noreply.github.com' - echo "Preparing commit" - git add -A - git commit -m "Added version $(curl --silent https://api.github.com/repos/PyvesB/eclipse-solargraph/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/') to the update site" - git remote add pages https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/PyvesB/eclipse-solargraph.git - echo "Pushing commit" - git push pages gh-pages -f