Browse Source

Merge pull request #2356 from svaarala/ga-dist-tag-sensitive

Dist site only on tag pushes
pull/2357/head
Sami Vaarala 4 years ago
committed by GitHub
parent
commit
b6d214f185
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      .github/workflows/dist-tag-workflow.yaml
  2. 21
      .github/workflows/dist-workflow.yaml

42
.github/workflows/dist-tag-workflow.yaml

@ -0,0 +1,42 @@
name: Dist Tag
on:
push:
tags: '*'
jobs:
dist_source:
name: Source
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt install build-essential make python python-yaml bc git
- name: Dist source
run: |
make dist-source
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: source-artifact
path: dist/*.tar.xz
dist_site:
name: Site
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt install build-essential make python python-yaml bc git
- name: Build Docker images
run: |
make docker-images
- name: Dist site
run: |
make docker-dist-site-wd
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: site-artifact
path: dist/*.tar.xz

21
.github/workflows/dist-workflow.yaml

@ -18,24 +18,3 @@ jobs:
with:
name: source-artifact
path: dist/*.tar.xz
dist_site:
name: Site
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt install build-essential make python python-yaml bc git
- name: Build Docker images
run: |
make docker-images
- name: Dist site
run: |
echo ${GITHUB_REF}
make docker-dist-site-wd
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: site-artifact
path: dist/*.tar.xz

Loading…
Cancel
Save