Skip to content

Commit

Permalink
removed uploading of files
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Feb 15, 2022
1 parent 1cde4cc commit 99f6086
Showing 1 changed file with 60 additions and 59 deletions.
119 changes: 60 additions & 59 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,64 +81,65 @@ jobs:
cq_version=2.1
compile_cores=2
upload_workflow_output_files_to_release:
needs: build_and_push_docker_images
runs-on: ubuntu-latest

name: 'create_files'

container:
image: ghcr.io/fusion-energy/fusion-neutronics-workflow

steps:
- uses: actions/checkout@v2

# the examples also appear on the docker image but they are in the
# /examples subfolder so there is no overlap with these examples
- name: run example_01_single_volume_cell_tally
run: |
cd example_01_single_volume_cell_tally
python 1_create_cad_and_convert_to_dagmc.py
python 2_run_neutronics_simulation.py
# TODO fix error when uploading files to a release
# upload_workflow_output_files_to_release:
# needs: build_and_push_docker_images
# runs-on: ubuntu-latest

# name: 'create_files'

# container:
# image: ghcr.io/fusion-energy/fusion-neutronics-workflow

# steps:
# - uses: actions/checkout@v2

# # the examples also appear on the docker image but they are in the
# # /examples subfolder so there is no overlap with these examples
# - name: run example_01_single_volume_cell_tally
# run: |
# cd example_01_single_volume_cell_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py

- name: run example_02_multi_volume_cell_tally
run: |
cd example_02_multi_volume_cell_tally
python 1_create_cad_and_convert_to_dagmc.py
python 2_run_neutronics_simulation.py
# - name: run example_02_multi_volume_cell_tally
# run: |
# cd example_02_multi_volume_cell_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py

- name: run example_04_multi_volume_regular_mesh_tally
run: |
cd example_04_multi_volume_regular_mesh_tally
python 1_create_cad_and_convert_to_dagmc.py
python 2_run_neutronics_simulation.py
python 3_post_process_and_plot.py
# - name: run example_05_3D_unstructured_mesh_tally
# run: |
# cd example_05_3D_unstructured_mesh_tally
# python 1_create_cad_and_convert_to_dagmc.py
# mbconvert stage_2_output/unstructured_mesh.cub stage_2_output/unstructured_mesh.h5m
# python 2_run_neutronics_simulation.py


- name: compress files
run: |
apt-get -y update
apt-get -y install zip
zip -r output_files_produced.zip example_*
- name: Upload artifact for CI
uses: actions/upload-artifact@v2
with:
name: output_files_produced.zip
path: output_files_produced.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

- name: Upload files into the release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: output_files_produced.zip
asset_name: output_files_produced.zip
tag: ${{ github.ref }}
# - name: run example_04_multi_volume_regular_mesh_tally
# run: |
# cd example_04_multi_volume_regular_mesh_tally
# python 1_create_cad_and_convert_to_dagmc.py
# python 2_run_neutronics_simulation.py
# python 3_post_process_and_plot.py

# # - name: run example_05_3D_unstructured_mesh_tally
# # run: |
# # cd example_05_3D_unstructured_mesh_tally
# # python 1_create_cad_and_convert_to_dagmc.py
# # mbconvert stage_2_output/unstructured_mesh.cub stage_2_output/unstructured_mesh.h5m
# # python 2_run_neutronics_simulation.py


# - name: compress files
# run: |
# apt-get -y update
# apt-get -y install zip
# zip -r output_files_produced.zip example_*

# - name: Upload artifact for CI
# uses: actions/upload-artifact@v2
# with:
# name: output_files_produced.zip
# path: output_files_produced.zip
# if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

# - name: Upload files into the release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: output_files_produced.zip
# asset_name: output_files_produced.zip
# tag: ${{ github.ref }}

0 comments on commit 99f6086

Please sign in to comment.