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 f3903d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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/*
4 changes: 2 additions & 2 deletions .github/workflows/release.job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./artifacts/dist/ado-manifests/azure-devops-extension-base.json \
--overrides-file ./artifacts/dist/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 f3903d0

Please sign in to comment.