From 92a10f32e9869a83a063a50df7e5d8018881a768 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sun, 30 Oct 2022 22:54:43 +0530 Subject: Initial commit of eSim auto packaging --- .github/workflows/release_ubuntu.yml | 115 +++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 .github/workflows/release_ubuntu.yml (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml new file mode 100644 index 00000000..0e5df9db --- /dev/null +++ b/.github/workflows/release_ubuntu.yml @@ -0,0 +1,115 @@ +#This flow will build the latest docker image, test the OpenFASOC flow in it and if it works, update the readme file and push it to the docker hub for reference + +name: Auto release of eSim for Ubuntu OS + +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + workflow_dispatch: + + +jobs: + release_eSim: + runs-on: ubuntu-latest + steps: + +# Create eSim release directory + - name: Preparing eSim for release + run: mkdir /home/runner/work/eSim_release + +# Steps to prepare nghld.zip + + - name: Preparing nghdl for release + run: mkdir /home/runner/work/nghdl_release + + - name: Checkout FOSSEE/nghdl installers branch + uses: actions/checkout@v3 + with: + repository: FOSSEE/nghdl + ref: installers + + - name: Get required data from the nghld/installers branch + run: | + cp Ubuntu/ghdl-*.tar.xz /home/runner/work/nghdl_release/. + cp Ubuntu/verilator-*.tar.xz /home/runner/work/nghdl_release/. + cp Ubuntu/install-nghdl.sh /home/runner/work/nghdl_release/. + + - name: Checkout FOSSEE/nghdl installers branch + uses: actions/checkout@v3 + with: + repository: FOSSEE/nghdl + ref: master + + - name: Get required data from the nghld/master branch + run: | + cp -rf ./* /home/runner/work/nghdl_release/. + cd /home/runner/work + rm -rf nghdl_release/.git* nghdl_release/*.md + + - name: Compress the nghdl folder and copy it to eSim release folder + run: | + zip -r nghld.zip . -i nghdl_release/. + cp nghld.zip /home/runner/work/eSim_release/. + tree /home/runner/work/ + +# Steps to prepare eSim release directory + + - name: Checkout FOSSEE/eSim master branch + uses: actions/checkout@v3 + with: + repository: FOSSEE/eSim + ref: master + + - name: Compress the library/kicadLibrary folder + run: | + tar cfJ kicadLibrary.tar.xz library/kicadLibrary/. + cp kicadLibrary.tar.xz /home/runner/work/eSim_release/. + + - name: Copy all the data from eSim/master to eSim_release and delete specific data + run: | + rm -rf .git* code library/browser/User-Manual/figures + rm conf.py setup.py index.rst requirements.txt .travis.yml library/browser/User-Manual/eSim.html + cp -rf ./* /home/runner/work/eSim_release/. + + - name: Checkout FOSSEE/eSim installers branch + uses: actions/checkout@v3 + with: + repository: FOSSEE/eSim + ref: installers + + - name: Copy install-eSim.sh script to the release directory + run: | + cp Ubuntu/install-eSim.sh /home/runner/work/eSim_release/. + + - name: Zip the eSim_release folder + run: | + cd /home/runner/work/ + zip -r eSim_release.zip eSim_release/ + ls eSim_release.zip + tree -L 3 + +# Create a release and upload artifact + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: test_tag + release_name: Release test_tag + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./eSim_release.zip + asset_name: eSim_release.zip + asset_content_type: application/zip + + -- cgit From 24338c89fd7fb72cc87471cdaa7c1dcda7024261 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sun, 30 Oct 2022 22:58:20 +0530 Subject: Fixing release step of eSim auto packaging --- .github/workflows/release_ubuntu.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 0e5df9db..c270399c 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -86,8 +86,6 @@ jobs: run: | cd /home/runner/work/ zip -r eSim_release.zip eSim_release/ - ls eSim_release.zip - tree -L 3 # Create a release and upload artifact @@ -101,6 +99,7 @@ jobs: release_name: Release test_tag draft: false prerelease: false + - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1 @@ -108,7 +107,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./eSim_release.zip + asset_path: /home/runner/work/eSim_release.zip asset_name: eSim_release.zip asset_content_type: application/zip -- cgit From 12fae67f533cf4caad1bcbdf8d05143aa96e7b5c Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sun, 30 Oct 2022 23:01:19 +0530 Subject: Creating new release tag for testing --- .github/workflows/release_ubuntu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index c270399c..aa3037c1 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -95,11 +95,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: test_tag - release_name: Release test_tag + tag_name: test_tag1 + release_name: Release test_tag2 draft: false prerelease: false - + - name: Upload Release Asset id: upload-release-asset uses: actions/upload-release-asset@v1 -- cgit From 4f5dcff476fb34ab164c7974773516b7d7298c33 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 10:52:24 +0530 Subject: modify tag expression from v to eSim --- .github/workflows/release_ubuntu.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index aa3037c1..05e6370d 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -1,11 +1,9 @@ -#This flow will build the latest docker image, test the OpenFASOC flow in it and if it works, update the readme file and push it to the docker hub for reference - name: Auto release of eSim for Ubuntu OS on: push: tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'eSim-*' # Push events to matching v*, i.e. eSim-2.2, eSim-2.3 etc workflow_dispatch: @@ -14,12 +12,13 @@ jobs: runs-on: ubuntu-latest steps: + # Create eSim release directory - name: Preparing eSim for release run: mkdir /home/runner/work/eSim_release -# Steps to prepare nghld.zip +# Steps to prepare nghld.zip - name: Preparing nghdl for release run: mkdir /home/runner/work/nghdl_release @@ -53,8 +52,8 @@ jobs: cp nghld.zip /home/runner/work/eSim_release/. tree /home/runner/work/ -# Steps to prepare eSim release directory +# Steps to prepare eSim release directory - name: Checkout FOSSEE/eSim master branch uses: actions/checkout@v3 with: @@ -82,21 +81,27 @@ jobs: run: | cp Ubuntu/install-eSim.sh /home/runner/work/eSim_release/. + # extract the number from the tag to pull the relevant manual from the website + - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ + run: | + version=echo ${{github.ref_name}} | tr -d "-" -f 2 + wget https://static.fossee.in/esim/manuals/eSim_Manual_${{version}}.pdf + - name: Zip the eSim_release folder run: | cd /home/runner/work/ zip -r eSim_release.zip eSim_release/ -# Create a release and upload artifact +# Create a release and upload artifact - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: test_tag1 - release_name: Release test_tag2 + tag_name: ${{ github.ref_name }} + release_name: ${{ github.ref_name }} draft: false prerelease: false -- cgit From 4e396cfc37aa822cc59bbe75a14a469550b049f7 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 10:59:28 +0530 Subject: tag regex --- .github/workflows/release_ubuntu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 05e6370d..107935f4 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -3,7 +3,7 @@ name: Auto release of eSim for Ubuntu OS on: push: tags: - - 'eSim-*' # Push events to matching v*, i.e. eSim-2.2, eSim-2.3 etc + - 'v*' # Push events to matching v*, i.e. v2.2, v2.3 etc workflow_dispatch: @@ -84,7 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - version=echo ${{github.ref_name}} | tr -d "-" -f 2 + version=echo ${{github.ref_name}} | tr -d "v" -f 2 wget https://static.fossee.in/esim/manuals/eSim_Manual_${{version}}.pdf - name: Zip the eSim_release folder -- cgit From 3aaa8b7b53c05434afae7ef87d2a1f1394532463 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:02:13 +0530 Subject: version env variable fix --- .github/workflows/release_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 107935f4..ceeea635 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -85,7 +85,7 @@ jobs: - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | version=echo ${{github.ref_name}} | tr -d "v" -f 2 - wget https://static.fossee.in/esim/manuals/eSim_Manual_${{version}}.pdf + wget https://static.fossee.in/esim/manuals/eSim_Manual_$version.pdf - name: Zip the eSim_release folder run: | -- cgit From 67ceb521cdfc1dbb68a7f92ac363c1a32bfe66e6 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:08:50 +0530 Subject: version env variable fix again --- .github/workflows/release_ubuntu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index ceeea635..e476ffad 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,8 +84,8 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - version=echo ${{github.ref_name}} | tr -d "v" -f 2 - wget https://static.fossee.in/esim/manuals/eSim_Manual_$version.pdf + echo "version=$(echo ${{github.ref_name}} | tr -d "v" -f 2)" >> $GITHUB_ENV + wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.version }}.pdf - name: Zip the eSim_release folder run: | -- cgit From 0bd215b9382851d682d862a902de7ac4e0c2b555 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:11:05 +0530 Subject: trim command fix --- .github/workflows/release_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index e476ffad..defcbe1f 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,7 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo "version=$(echo ${{github.ref_name}} | tr -d "v" -f 2)" >> $GITHUB_ENV + echo "version=$(echo ${{github.ref_name}} | tr -d 'v' -f 2)" >> $GITHUB_ENV wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.version }}.pdf - name: Zip the eSim_release folder -- cgit From 15018d0bde45356f9303522d5d706e4948910e48 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:13:12 +0530 Subject: cut command fix --- .github/workflows/release_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index defcbe1f..edfd4993 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,7 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo "version=$(echo ${{github.ref_name}} | tr -d 'v' -f 2)" >> $GITHUB_ENV + echo "version=$(echo ${{github.ref_name}} | cut -d 'v' -f 2)" >> $GITHUB_ENV wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.version }}.pdf - name: Zip the eSim_release folder -- cgit From 3509c41478b989e9571cdc06494060c217817d0e Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:19:44 +0530 Subject: cut command fix --- .github/workflows/release_ubuntu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index edfd4993..480efba0 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,8 +84,8 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo "version=$(echo ${{github.ref_name}} | cut -d 'v' -f 2)" >> $GITHUB_ENV - wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.version }}.pdf + echo "VERSION=$(echo ${{github.ref_name}} | cut -d 'v' -f 2)" >> $GITHUB_ENV + wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.VERSION }}.pdf - name: Zip the eSim_release folder run: | -- cgit From a92252583e6d946421d47748fed9bd836b66bcc3 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 11:53:52 +0530 Subject: capture version --- .github/workflows/release_ubuntu.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 480efba0..f12b0f66 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,6 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | + echo ${{github.ref_name}} echo "VERSION=$(echo ${{github.ref_name}} | cut -d 'v' -f 2)" >> $GITHUB_ENV wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.VERSION }}.pdf -- cgit From 1702c6921df310fdbb32cc3ff1027404e09620d3 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 12:22:28 +0530 Subject: fix tag names --- .github/workflows/release_ubuntu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index f12b0f66..0d096dfc 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,9 +84,9 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo ${{github.ref_name}} - echo "VERSION=$(echo ${{github.ref_name}} | cut -d 'v' -f 2)" >> $GITHUB_ENV - wget https://static.fossee.in/esim/manuals/eSim_Manual_${{ env.VERSION }}.pdf + echo $GITHUB_REF_TYPE + # echo "VERSION=$(echo $GITHUB_REF_TYPE | cut -d 'v' -f 2)" >> $GITHUB_ENV + wget https://static.fossee.in/esim/manuals/eSim_Manual_$GITHUB_REF_TYPE.pdf - name: Zip the eSim_release folder run: | -- cgit From 875beccb42d8f80e25c3c0b5e355cf834b22e764 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 12:29:37 +0530 Subject: fix tag names --- .github/workflows/release_ubuntu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 0d096dfc..8b95c4d7 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,9 +84,9 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo $GITHUB_REF_TYPE - # echo "VERSION=$(echo $GITHUB_REF_TYPE | cut -d 'v' -f 2)" >> $GITHUB_ENV - wget https://static.fossee.in/esim/manuals/eSim_Manual_$GITHUB_REF_TYPE.pdf + echo $GITHUB_REF_NAME + # echo "VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" >> $GITHUB_ENV + wget https://static.fossee.in/esim/manuals/eSim_Manual_$GITHUB_REF_NAME.pdf - name: Zip the eSim_release folder run: | -- cgit From eee167724f3841a3114cad5b1ceddf049a013f6c Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 12:37:07 +0530 Subject: fix tag names again --- .github/workflows/release_ubuntu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 8b95c4d7..86877f98 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,9 +84,9 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - echo $GITHUB_REF_NAME - # echo "VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" >> $GITHUB_ENV - wget https://static.fossee.in/esim/manuals/eSim_Manual_$GITHUB_REF_NAME.pdf + # echo $GITHUB_REF_NAME + echo "VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" >> $GITHUB_ENV + wget https://static.fossee.in/esim/manuals/eSim_Manual_$VERSION.pdf - name: Zip the eSim_release folder run: | -- cgit From d7c55b6f6bea6d821643d98fec3dd710e09659e4 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 12:41:04 +0530 Subject: fix tag names yet again --- .github/workflows/release_ubuntu.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 86877f98..bad6b5f6 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,8 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - # echo $GITHUB_REF_NAME - echo "VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" >> $GITHUB_ENV + VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" wget https://static.fossee.in/esim/manuals/eSim_Manual_$VERSION.pdf - name: Zip the eSim_release folder -- cgit From 79978dfb5414107953bdcc6717d9c5bb8df38ac5 Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 12:50:50 +0530 Subject: fix tag names yet again and again --- .github/workflows/release_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index bad6b5f6..7ff3f33e 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -84,7 +84,7 @@ jobs: # extract the number from the tag to pull the relevant manual from the website - name: Copy eSim manual which is available at https://static.fossee.in/esim/manuals/ run: | - VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2)" + VERSION=$(echo $GITHUB_REF_NAME | cut -d 'v' -f 2) wget https://static.fossee.in/esim/manuals/eSim_Manual_$VERSION.pdf - name: Zip the eSim_release folder -- cgit From 2d9b58bd48762ca089a537e68cbae38c6b36426f Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 13:42:22 +0530 Subject: final changes to the release flow --- .github/workflows/release_ubuntu.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 7ff3f33e..1ed41a21 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -90,7 +90,7 @@ jobs: - name: Zip the eSim_release folder run: | cd /home/runner/work/ - zip -r eSim_release.zip eSim_release/ + zip -r eSim-$VERSION.zip eSim_release/ # Create a release and upload artifact @@ -101,7 +101,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref_name }} - release_name: ${{ github.ref_name }} + release_name: eSim-$VERSION draft: false prerelease: false @@ -112,8 +112,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: /home/runner/work/eSim_release.zip - asset_name: eSim_release.zip - asset_content_type: application/zip - - + asset_path: /home/runner/work/eSim-$VERSION.zip + asset_name: eSim-$VERSION.zip + asset_content_type: application/zip \ No newline at end of file -- cgit From a14bb8b7c7661a65026eabc4ad42e374e4f8199b Mon Sep 17 00:00:00 2001 From: saicharan0112 Date: Sat, 12 Nov 2022 13:54:14 +0530 Subject: Notes in the header section of the workflow file for more understanding --- .github/workflows/release_ubuntu.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release_ubuntu.yml b/.github/workflows/release_ubuntu.yml index 1ed41a21..0fc6043b 100644 --- a/.github/workflows/release_ubuntu.yml +++ b/.github/workflows/release_ubuntu.yml @@ -1,10 +1,17 @@ +# By Sai Charan Lanka (@saicharan0112) : Nov 12, 2022 +# This is the workflow to pack the eSim for Ubuntu OS which follows the steps shown in the installer branch and release the zip file which can be uploaded onto the website +# Note: +# 1. Make sure the eSim manual for the version about to release, already exists in the https://static.fossee.in/esim/manuals/ location. Else the release fails. +# 2. To trigger this workflow, create and push tags that start with "v". +# For more info, refer to PR#230 and Issue#211 + + name: Auto release of eSim for Ubuntu OS on: push: tags: - 'v*' # Push events to matching v*, i.e. v2.2, v2.3 etc - workflow_dispatch: jobs: -- cgit