You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/08/31 09:08:25 UTC

[buildstream] branch tristan/test-external-ci-4 created (now 7808d27)

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a change to branch tristan/test-external-ci-4
in repository https://gitbox.apache.org/repos/asf/buildstream.git.


      at 7808d27  .github/workflows/ci.yml: Try with merge/release workflows removed

This branch includes the following new commits:

     new 7808d27  .github/workflows/ci.yml: Try with merge/release workflows removed

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[buildstream] 01/01: .github/workflows/ci.yml: Try with merge/release workflows removed

Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/test-external-ci-4
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 7808d279cc2eb248ff2bb5e91a53f2634ab40b69
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Tue Aug 31 18:07:38 2021 +0900

    .github/workflows/ci.yml: Try with merge/release workflows removed
---
 .github/workflows/ci.yml      |  3 ++
 .github/workflows/merge.yml   | 86 -------------------------------------------
 .github/workflows/release.yml | 40 --------------------
 3 files changed, 3 insertions(+), 126 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3f0fc63..7c16ed9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,9 @@ name: PR Checks
 #
 on:
   push:
+    branches-ignore:
+    - gh-pages
+    - master
   pull_request:
 
 # Use the concurrency feature to ensure we don't run redundant workflows
diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml
deleted file mode 100644
index 330c457..0000000
--- a/.github/workflows/merge.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-name: Merge actions
-
-on:
-  push:
-    branches:
-    - master
-
-jobs:
-  build:
-    name: Build documentation
-    runs-on: ubuntu-20.04
-    steps:
-    - name: Checkout code
-      uses: actions/checkout@v2
-      # BuildStream requires tags to be able to find its version.
-      with:
-        fetch-depth: 0
-
-    - name: Give `testuser` ownership of the source directory
-      run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
-
-    - name: Build documentation using Docker Compose
-      run: |
-        docker-compose \
-          --env-file ${GITHUB_WORKSPACE}/.github/common.env \
-          --file ${GITHUB_WORKSPACE}/.github/compose/ci.docker-compose.yml \
-          run \
-          docs
-
-        # Restore permissions to the current user
-        sudo chown -R ${USER} ${GITHUB_WORKSPACE}
-
-        # Include a tarball in the published docs, allowing for
-        # easy re-publishing of master docs on docs.buildstream.build
-        tar -C doc/build/html -zcf docs.tgz .
-
-    - name: Upload artifacts
-      uses: actions/upload-artifact@v2
-      with:
-        name: docs
-        path: |
-          doc/build/html
-          docs.tgz
-
-  publish:
-    needs: build
-    runs-on: ubuntu-20.04
-    steps:
-
-    - name: Download artifact
-      uses: actions/download-artifact@v2
-      with:
-        name: docs
-        path: docs
-
-    - name: Checkout code
-      uses: actions/checkout@v2
-      with:
-        ref: gh-pages
-        path: pages
-        fetch-depth: 0
-
-    - name: Update repo
-      run: |
-
-        # First reset the branch state to the initial commit, this ensures that
-        # we do not pollute the repository with the history of every docs package
-        # we've ever published (history of docs packages for major releases is
-        # also stored as GitHub release assets)
-        #
-        cd pages/
-        git reset --hard GH_PAGES_FIRST_COMMIT
-
-        # Copy the docs asset over and overwrite the orphan gh-pages branch, ensure
-        # that we disable GitHub's jekyll by creating the .nojekyll file, otherwise
-        # it will interfere with the rendering of the site.
-        #
-        cp -a ../docs/doc/build/html/* .
-        cp -a ../docs/docs.tgz .
-        touch .nojekyll
-
-        git add .
-        git config --local user.email "merge-ci@ponyland"
-        git config --local user.name  "Github Actions Nightly Job"
-        git commit -m "Update repo for docs build $GITHUB_RUN_NUMBER"
-        git push --force "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" gh-pages
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index 55dfe86..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-name: Upload Release Asset
-
-on:
-  push:
-    tags:
-    - '*.*.*'
-
-jobs:
-  build:
-    name: Upload Release Asset
-    runs-on: ubuntu-20.04
-    steps:
-      - name: Checkout code
-        uses: actions/checkout@v2
-        # BuildStream requires tags to be able to find its version.
-        with:
-          fetch-depth: 0
-
-      - name: Give `testuser` ownership of the source directory
-        run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
-
-      - name: Build documentation using Docker Compose
-        run: |
-          docker-compose \
-            --env-file ${GITHUB_WORKSPACE}/.github/common.env \
-            --file ${GITHUB_WORKSPACE}/.github/compose/ci.docker-compose.yml \
-            run \
-            docs
-
-          # Restore permissions to the current user
-          sudo chown -R ${USER} ${GITHUB_WORKSPACE}
-
-          tar -C doc/build/html -zcf docs.tgz .
-
-      - name: Upload release assets
-        run: |
-          tag_name="${GITHUB_REF##*/}"
-          hub release create -a "docs.tgz" -m "$tag_name" "$tag_name"
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}