mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-06 08:11:39 +00:00
Append commit hash to version to debug re-releases with the same version number
This commit is contained in:
parent
7ef21577f0
commit
d91902b301
4 changed files with 14 additions and 4 deletions
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -22,6 +22,9 @@ jobs:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get commit SHA
|
||||||
|
run: echo "LATEST_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -34,6 +37,7 @@ jobs:
|
||||||
echo "${{ github.event.inputs.version }}" > dist/VERSION
|
echo "${{ github.event.inputs.version }}" > dist/VERSION
|
||||||
env:
|
env:
|
||||||
DRIBBBLISH_VERSION: ${{ github.event.inputs.version }}
|
DRIBBBLISH_VERSION: ${{ github.event.inputs.version }}
|
||||||
|
COMMIT_HASH: ${{ env.LATEST_SHA }}
|
||||||
|
|
||||||
- name: Zip Release
|
- name: Zip Release
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
|
||||||
9
.github/workflows/webpack-test.yml
vendored
9
.github/workflows/webpack-test.yml
vendored
|
|
@ -12,6 +12,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Get commit SHA
|
||||||
|
run: echo "LATEST_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -22,9 +25,11 @@ jobs:
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
echo "Dev" > dist/VERSION
|
echo "Dev" > dist/VERSION
|
||||||
|
env:
|
||||||
|
COMMIT_HASH: ${{ env.LATEST_SHA }}
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: DribbblishDynamic_vDev
|
name: DribbblishDynamic_vDev-${{ env.LATEST_SHA }}
|
||||||
path: dist/**
|
path: dist/**
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@ waitForElement(["#main"], () => {
|
||||||
description: `
|
description: `
|
||||||
OS: ${capitalizeFirstLetter(Spicetify.Platform.PlatformData.os_name)} v${Spicetify.Platform.PlatformData.os_version}
|
OS: ${capitalizeFirstLetter(Spicetify.Platform.PlatformData.os_name)} v${Spicetify.Platform.PlatformData.os_version}
|
||||||
Spotify: v${Spicetify.Platform.PlatformData.event_sender_context_information?.client_version_string ?? Spicetify.Platform.PlatformData.client_version_triple}
|
Spotify: v${Spicetify.Platform.PlatformData.event_sender_context_information?.client_version_string ?? Spicetify.Platform.PlatformData.client_version_triple}
|
||||||
Dribbblish: v${process.env.DRIBBBLISH_VERSION}
|
Dribbblish: v${process.env.DRIBBBLISH_VERSION}-${process.env.COMMIT_HASH}
|
||||||
`,
|
`,
|
||||||
data: "Copy",
|
data: "Copy",
|
||||||
onChange: (val) => {
|
onChange: (val) => {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ module.exports = {
|
||||||
cleanAfterEveryBuildPatterns: ["*.LICENSE.txt"]
|
cleanAfterEveryBuildPatterns: ["*.LICENSE.txt"]
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
"process.env.DRIBBBLISH_VERSION": JSON.stringify(process.env.DRIBBBLISH_VERSION || "Dev")
|
"process.env.DRIBBBLISH_VERSION": JSON.stringify(process.env.DRIBBBLISH_VERSION || "Dev"),
|
||||||
|
"process.env.COMMIT_HASH": JSON.stringify(process.env.COMMIT_HASH || "local")
|
||||||
}),
|
}),
|
||||||
new CopyPlugin({
|
new CopyPlugin({
|
||||||
patterns: [{ from: "src/assets", to: "assets" }]
|
patterns: [{ from: "src/assets", to: "assets" }]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue