Skip to content

Commit

Permalink
build: packaged all neded files in dist folder for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchuetze committed Oct 1, 2023
1 parent bfba708 commit 12d8d92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ jobs:
with:
name: banner-settings-extension
path: |
${{ github.workspace }}/ado-manifests/*
${{ github.workspace }}/dist/*
${{ github.workspace }}/static/*
6 changes: 3 additions & 3 deletions .github/workflows/release.job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
run_id: ${{ github.event.workflow_run.id }}
name: banner-settings-extension
path: ./artifacts
path: ./
search_artifacts: true

- name: Install TFX CLI
Expand All @@ -32,7 +32,7 @@ jobs:
SHARE_OPTION="--share-with razorspoint-test"
fi
tfx extension publish \
--manifests ./artifacts/ado-manifests/azure-devops-extension-base.json \
--overrides-file ./artifacts/ado-manifests/azure-devops-extension-${{ inputs.env_suffix }}.json \
--manifests ./ado-manifests/azure-devops-extension-base.json \
--overrides-file ./ado-manifests/azure-devops-extension-${{ inputs.env_suffix }}.json \
$SHARE_OPTION \
--token ${{ secrets.azure_devops_token }}
9 changes: 7 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = (env, argv) => {
devtool: argv.mode === 'development' ? 'source-map' : false,
output: {
filename: "[name]/[name].js",
path: path.join(__dirname, 'dist'),
path: path.join(__dirname, 'dist/dist'),
publicPath: "/dist/"
},
resolve: {
Expand Down Expand Up @@ -75,7 +75,12 @@ module.exports = (env, argv) => {
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: "**/*.html", context: "src/" }
{ from: "**/*.html", context: "src/", to: "../" },
{ from: "LICENSE", to: "../" },
{ from: "static/*", to: "../" },
{ from: "ado-manifests/azure-devops-extension-base.json", to: "../ado-manifests/" },
{ from: "ado-manifests/azure-devops-extension-test.json", to: "../ado-manifests/" },
{ from: "ado-manifests/azure-devops-extension-prod.json", to: "../ado-manifests/" },
]
}),
new MiniCssExtractPlugin({
Expand Down

0 comments on commit 12d8d92

Please sign in to comment.