Skip to content

Commit

Permalink
chore: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-COLLIN committed Jun 2, 2024
1 parent a1f89d6 commit 236ddcb
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
id: package_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

# - name: Create Tag
# run: git tag v${{ steps.package_version.outputs.version }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Push Tag
# run: git push origin v${{ steps.package_version.outputs.version }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Tag
run: git tag v${{ steps.package_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push Tag
run: git push origin v${{ steps.package_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build Changelog
id: github_release
Expand All @@ -62,61 +62,61 @@ jobs:
]
}
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ steps.package_version.outputs.version }}
# release_name: ⏩ v${{ steps.package_version.outputs.version }}
# body: ${{ steps.github_release.outputs.changelog }}
# draft: false
# prerelease: false
#
## - name: Download CRX and XPI files
## run: |
## wget -O releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=90.0.4430.212&acceptformat=crx2,crx3&x=id%3Dagklnagmfeooogcppjccdnoallkhgkod%26uc"
##
## - name: Upload Release Asset Chrome CRX
## uses: actions/upload-release-asset@v1
## env:
## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
## with:
## upload_url: ${{ steps.create_release.outputs.upload_url }}
## asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx
## asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx
## asset_content_type: application/x-chrome-extension
##
## - name: Upload Release Asset Firefox XPI
## uses: actions/upload-release-asset@v1
## env:
## GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
## with:
## upload_url: ${{ steps.create_release.outputs.upload_url }}
## asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_firefox.xpi
## asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_firefox.xpi
## asset_content_type: application/x-xpinstall
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package_version.outputs.version }}
release_name: ⏩ v${{ steps.package_version.outputs.version }}
body: ${{ steps.github_release.outputs.changelog }}
draft: false
prerelease: false

# - name: Download CRX and XPI files
# run: |
# wget -O releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=90.0.4430.212&acceptformat=crx2,crx3&x=id%3Dagklnagmfeooogcppjccdnoallkhgkod%26uc"
#
# - name: Upload Release Asset Chrome
# - name: Upload Release Asset Chrome CRX
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.zip
# asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_chrome.zip
# asset_content_type: application/zip
# asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx
# asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_chrome.crx
# asset_content_type: application/x-chrome-extension
#
# - name: Upload Release Asset Firefox
# - name: Upload Release Asset Firefox XPI
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_firefox.zip
# asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_firefox.zip
# asset_content_type: application/zip
# asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_firefox.xpi
# asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_firefox.xpi
# asset_content_type: application/x-xpinstall

- name: Upload Release Asset Chrome
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_chrome.zip
asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_chrome.zip
asset_content_type: application/zip

- name: Upload Release Asset Firefox
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./releases/save-my-phind_${{ steps.package_version.outputs.version }}_firefox.zip
asset_name: save-my-phind_${{ steps.package_version.outputs.version }}_firefox.zip
asset_content_type: application/zip

- name: Create a new GitHub Discussion
uses: abirismyname/[email protected]
Expand Down

0 comments on commit 236ddcb

Please sign in to comment.